samman100 commited on
Commit
61b557e
·
1 Parent(s): 9a17980

updating changes

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. dog1.jfif +0 -0
  3. dog2.jfif +0 -0
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.inputs.Image(shape=(512, 512)),
17
- outputs=gr.outputs.Label(num_top_classes=3)).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(shape=(512, 512)),
17
+ outputs=gr.Label(num_top_classes=3), examples=['dog1.jfif', 'dog2.jfif']).launch(share=True)
dog1.jfif ADDED
Binary file (5.69 kB). View file
 
dog2.jfif ADDED
Binary file (5.61 kB). View file