Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,12 +30,11 @@ def predict(image):
|
|
30 |
|
31 |
return label
|
32 |
|
33 |
-
|
34 |
fn=predict,
|
35 |
-
inputs=gr.Image(type="
|
36 |
-
outputs=gr.
|
37 |
-
|
38 |
-
description="Upload a full image. The model classifies it as real or fake."
|
39 |
)
|
40 |
|
41 |
-
|
|
|
30 |
|
31 |
return label
|
32 |
|
33 |
+
iface = gr.Interface(
|
34 |
fn=predict,
|
35 |
+
inputs=gr.Image(type="filepath"),
|
36 |
+
outputs=gr.JSON(), # <-- very important
|
37 |
+
live=False
|
|
|
38 |
)
|
39 |
|
40 |
+
iface.launch()
|