Spaces:
Running
Running
Adapt to Gradio 6.x: move theme to launch()
Browse files
app.py
CHANGED
|
@@ -73,10 +73,7 @@ def detect(img):
|
|
| 73 |
return scores, verdict + "\n\n" + explanation + cta
|
| 74 |
|
| 75 |
|
| 76 |
-
with gr.Blocks(
|
| 77 |
-
title="AI Image Detector — Scam.AI",
|
| 78 |
-
theme=gr.themes.Soft(primary_hue="blue"),
|
| 79 |
-
) as demo:
|
| 80 |
gr.Markdown(
|
| 81 |
"# 🛡️ AI Image Detector\n"
|
| 82 |
"*Drop an image to check whether an open-source baseline thinks it's "
|
|
@@ -111,4 +108,4 @@ with gr.Blocks(
|
|
| 111 |
|
| 112 |
|
| 113 |
if __name__ == "__main__":
|
| 114 |
-
demo.launch()
|
|
|
|
| 73 |
return scores, verdict + "\n\n" + explanation + cta
|
| 74 |
|
| 75 |
|
| 76 |
+
with gr.Blocks(title="AI Image Detector — Scam.AI") as demo:
|
|
|
|
|
|
|
|
|
|
| 77 |
gr.Markdown(
|
| 78 |
"# 🛡️ AI Image Detector\n"
|
| 79 |
"*Drop an image to check whether an open-source baseline thinks it's "
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
+
demo.launch(theme=gr.themes.Soft(primary_hue="blue"))
|