klyap commited on
Commit
0f6c47b
1 Parent(s): 884a53b

share=false to enable hosting on hugging face

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,4 +15,4 @@ def predict(img):
15
  pred,pred_idx,probs = learn.predict(img)
16
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
17
 
18
- gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=True)
 
15
  pred,pred_idx,probs = learn.predict(img)
16
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
17
 
18
+ gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=False)