lyimo commited on
Commit
fcdd24f
1 Parent(s): 5f02152

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,6 +14,6 @@ def predict(img):
14
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
15
 
16
  examples = ['image.jpg']
17
-
18
  #gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
19
  gr.Interface(fn=predict,inputs=gr.components.Image(),outputs=gr.components.Label(num_top_classes=3)).launch()
 
14
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
15
 
16
  examples = ['image.jpg']
17
+ interface.queue(api_open=True)
18
  #gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=3),examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
19
  gr.Interface(fn=predict,inputs=gr.components.Image(),outputs=gr.components.Label(num_top_classes=3)).launch()