Zeyadd-Mostaffa commited on
Commit
efb1c5d
·
verified ·
1 Parent(s): f8b37ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,8 +37,9 @@ def predict(image_path): # receives filepath from gr.Image(type="filepath")
37
  iface = gr.Interface(
38
  fn=predict,
39
  inputs=gr.Image(type="filepath", label="image_path"),
40
- outputs=gr.Label(num_top_classes=2),
41
  allow_flagging="never"
42
  )
43
 
 
44
  iface.launch()
 
37
  iface = gr.Interface(
38
  fn=predict,
39
  inputs=gr.Image(type="filepath", label="image_path"),
40
+ outputs=gr.Text(label="output"), # <-- FIXED HERE
41
  allow_flagging="never"
42
  )
43
 
44
+
45
  iface.launch()