Spaces:
Runtime error
Runtime error
Adding examples
Browse files
app.py
CHANGED
@@ -30,6 +30,7 @@ def predict_fn(image):
|
|
30 |
return scores
|
31 |
|
32 |
iface = gr.Interface(fn=predict_fn,
|
33 |
-
|
34 |
-
|
|
|
35 |
iface.launch()
|
|
|
30 |
return scores
|
31 |
|
32 |
iface = gr.Interface(fn=predict_fn,
|
33 |
+
inputs=gr.Image(shape=(224, 224)),
|
34 |
+
outputs=gr.Label(num_top_classes=5),
|
35 |
+
examples=["apples.jpeg", "banana.jpeg", "car.jpeg"])
|
36 |
iface.launch()
|