Spaces:
Runtime error
Runtime error
updating changes
Browse files
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.
|
17 |
-
outputs=gr.
|
|
|
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
|
|