chaninder commited on
Commit
c5713fb
1 Parent(s): 26df8cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -22,10 +22,10 @@ def classify_image(inp):
22
  return confidences
23
 
24
  # create Gradio interface
 
25
  iface = gr.Interface(fn=classify_image,
26
- inputs=gr.Image(),
27
  outputs=gr.Label(num_top_classes=4),
28
- examples=["banana.jpg", "battery.jpg", "can.jpg"]
29
- )
30
 
31
  iface.launch(share=True)
 
22
  return confidences
23
 
24
  # create Gradio interface
25
+
26
  iface = gr.Interface(fn=classify_image,
27
+ inputs=gr.Image(shape=(224, 224)),
28
  outputs=gr.Label(num_top_classes=4),
29
+ examples=["banana.jpg", 'can.jpg', 'battery.jpg'])
 
30
 
31
  iface.launch(share=True)