Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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",
|
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)
|