Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,9 +13,7 @@ def classify_drinks(img):
|
|
| 13 |
return dict(zip(categories, map(float, probs)))
|
| 14 |
|
| 15 |
|
| 16 |
-
img = gr.inputs.Image(shape = (192,192))
|
| 17 |
-
label = gr.outputs.Label()
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
| 13 |
return dict(zip(categories, map(float, probs)))
|
| 14 |
|
| 15 |
|
|
|
|
|
|
|
| 16 |
|
| 17 |
+
gr.Interface(fn=classify_drinks,
|
| 18 |
+
inputs=gr.Image(type="pil"),
|
| 19 |
+
outputs= gr.Label()).launch(share=True)
|