Spaces:
Runtime error
Runtime error
Gal Uzan
commited on
Commit
·
295c103
1
Parent(s):
e0f144d
app.py
CHANGED
|
@@ -9,4 +9,9 @@ def predict(img):
|
|
| 9 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 10 |
|
| 11 |
|
| 12 |
-
gr.Interface(fn=predict,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 10 |
|
| 11 |
|
| 12 |
+
iface = gr.Interface(fn=predict,
|
| 13 |
+
inputs=gr.inputs.Image(shape=(512, 512)),
|
| 14 |
+
outputs=gr.outputs.Label(num_top_classes=3))
|
| 15 |
+
iface.launch()
|
| 16 |
+
|
| 17 |
+
#.launch(share=True))
|