Spaces:
Runtime error
Runtime error
changing input
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.Image(
|
17 |
outputs=gr.Label(num_top_classes=3), examples=['dog1.jfif', 'dog2.jfif']).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(type="pil"),
|
17 |
outputs=gr.Label(num_top_classes=3), examples=['dog1.jfif', 'dog2.jfif']).launch(share=True)
|