Will-uob commited on
Commit
306069b
·
1 Parent(s): 46a425a

Removed the depreciated usage of the API

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