samman100 commited on
Commit
642e1de
·
1 Parent(s): 61b557e

changing input

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,5 +13,5 @@ def predict(img):
13
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
14
 
15
 
16
- gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)),
17
  outputs=gr.Label(num_top_classes=3), examples=['dog1.jfif', 'dog2.jfif']).launch(share=True)
 
13
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
14
 
15
 
16
+ gr.Interface(fn=predict, inputs=gr.Image(type="pil"),
17
  outputs=gr.Label(num_top_classes=3), examples=['dog1.jfif', 'dog2.jfif']).launch(share=True)