chansung commited on
Commit
6dbc7c7
1 Parent(s): 1c3f51d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,7 +24,7 @@ def classify_image(inp):
24
  confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
25
  return confidences
26
 
27
- gr.Interface(fn=classify_image,
28
  inputs=gr.inputs.Image(shape=(224, 224)),
29
- outputs=gr.outputs.Label(num_top_classes=3),
30
- examples=["banana.jpg", "car.jpg"]).launch()
 
24
  confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
25
  return confidences
26
 
27
+ iface = gr.Interface(fn=classify_image,
28
  inputs=gr.inputs.Image(shape=(224, 224)),
29
+ outputs=gr.outputs.Label(num_top_classes=3)).launch()
30
+ iface.launch()