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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ def predict(image_path): # receives filepath from gr.Image(type="filepath")
36
 
37
  iface = gr.Interface(
38
  fn=predict,
39
- inputs=gr.Image(type="filepath"),
40
- outputs="text",
41
  allow_flagging="never"
42
  )
43
 
 
36
 
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