yxk1234 commited on
Commit
256ab39
·
1 Parent(s): ecb3516
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,5 +14,5 @@ def classify_image(img):
14
 
15
  examples = []
16
 
17
- iface = gr.Interface(fn=classify_image, inputs=gr.Image(type="pil"), outputs=gr.outputs.Label(), examples = examples)
18
  iface.launch(inline=False)
 
14
 
15
  examples = []
16
 
17
+ iface = gr.Interface(fn=classify_image, inputs=gr.Image(type="pil"), outputs=gr.Label(num_top_classes=2), examples = examples)
18
  iface.launch(inline=False)