Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ with gr.Blocks(theme=gr.themes.Soft(), title="LunaNet") as demo:
|
|
| 86 |
md_out = gr.Markdown(label="Verdict")
|
| 87 |
|
| 88 |
# api_name makes it callable as /predict from external frontends
|
| 89 |
-
btn.click(fn=predict, inputs=img_input, outputs=[label_out, md_out])
|
| 90 |
img_input.upload(fn=predict, inputs=img_input, outputs=[label_out, md_out])
|
| 91 |
|
| 92 |
gr.Markdown("---\n**Training data:** CIFAKE 路 140k Faces 路 OpenForensics 路 Celeb-DF v2")
|
|
|
|
| 86 |
md_out = gr.Markdown(label="Verdict")
|
| 87 |
|
| 88 |
# api_name makes it callable as /predict from external frontends
|
| 89 |
+
btn.click(fn=predict, inputs=img_input, outputs=[label_out, md_out], api_name="predict")
|
| 90 |
img_input.upload(fn=predict, inputs=img_input, outputs=[label_out, md_out])
|
| 91 |
|
| 92 |
gr.Markdown("---\n**Training data:** CIFAKE 路 140k Faces 路 OpenForensics 路 Celeb-DF v2")
|