CarlosChcn commited on
Commit
f9b0877
·
verified ·
1 Parent(s): cfa45d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -10,4 +10,7 @@ def predict(img):
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
- gr.Interface(fn=predict, inputs=gr.Image(), outputs=gr.Label(num_top_classes=5)).launch(share=True)
 
 
 
 
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
+ gr.Interface(fn=predict, inputs=gr.Image(), outputs=gr.Label(num_top_classes=5)).launch(share=True)
14
+
15
+ if __name__ == '__main__':
16
+ gradio_app.launch()