Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,5 +12,10 @@ def predict_image(img):
|
|
| 12 |
|
| 13 |
image = gr.Image(shape=(192, 192))
|
| 14 |
label = gr.Label()
|
| 15 |
-
intrfce = gr.Interface(fn=predict_image, inputs=image, outputs=label)
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
image = gr.Image(shape=(192, 192))
|
| 14 |
label = gr.Label()
|
| 15 |
+
#intrfce = gr.Interface(fn=predict_image, inputs=image, outputs=label)
|
| 16 |
+
|
| 17 |
+
intrfce = gr.Interface(fn=predict,
|
| 18 |
+
inputs=gr.Image(type="pil"),
|
| 19 |
+
outputs=gr.Label(num_top_classes=3)).launch()
|
| 20 |
+
|
| 21 |
+
# intrfce.launch(inline=False)
|