Anders Dahlen commited on
Commit
3e6e985
1 Parent(s): e529f3d

Fixed more typo stuff

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -9,4 +9,8 @@ def predict(img):
9
  pred,pred_idx,probs = learn.predict(img)
10
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
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
  pred,pred_idx,probs = learn.predict(img)
10
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
11
 
12
+ gr.Interface(
13
+ fn=predict,
14
+ inputs=gr.inputs.Image(shape=(512, 512)),
15
+ outputs=gr.outputs.Label(num_top_classes=3)
16
+ ).launch(share=True)