Gal Uzan commited on
Commit
295c103
1 Parent(s): e0f144d
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -9,4 +9,9 @@ def predict(img):
9
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
10
 
11
 
12
- gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3).launch(share=True))
 
 
 
 
 
 
9
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
10
 
11
 
12
+ iface = gr.Interface(fn=predict,
13
+ inputs=gr.inputs.Image(shape=(512, 512)),
14
+ outputs=gr.outputs.Label(num_top_classes=3))
15
+ iface.launch()
16
+
17
+ #.launch(share=True))