Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,8 @@ def classify_image(img):
|
|
| 26 |
# Gradio interface
|
| 27 |
demo = gr.Interface(
|
| 28 |
fn=classify_image,
|
| 29 |
-
inputs=gr.
|
| 30 |
-
outputs=[gr.
|
| 31 |
live=True
|
| 32 |
)
|
| 33 |
|
|
|
|
| 26 |
# Gradio interface
|
| 27 |
demo = gr.Interface(
|
| 28 |
fn=classify_image,
|
| 29 |
+
inputs=gr.Image(type="pil"),
|
| 30 |
+
outputs=[gr.Label(num_top_classes=len(class_labels)), "number"],
|
| 31 |
live=True
|
| 32 |
)
|
| 33 |
|