wolktm commited on
Commit
27b29bd
1 Parent(s): a699c8a
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def predict(img):
13
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
14
 
15
 
16
- gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch()
17
 
18
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
19
  # iface.launch()
 
13
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
14
 
15
 
16
+ gr.Interface(fn=predict,inputs="image", outputs="label").launch()
17
 
18
  # iface = gr.Interface(fn=greet, inputs="text", outputs="text")
19
  # iface.launch()