Zeyadd-Mostaffa commited on
Commit
6acfb85
·
verified ·
1 Parent(s): 4f11784

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,8 +51,8 @@ def predict(image_path):
51
  iface = gr.Interface(
52
  fn=predict,
53
  inputs=gr.Image(type="filepath"),
54
- outputs=gr.JSON(label="Prediction"), # Now it actually returns a dict
55
- live=False
56
  )
57
 
 
58
  iface.launch()
 
51
  iface = gr.Interface(
52
  fn=predict,
53
  inputs=gr.Image(type="filepath"),
54
+ outputs=gr.Label(), # just returns a string like "Real"
 
55
  )
56
 
57
+
58
  iface.launch()