Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,8 +23,8 @@ def classify_image(image):
|
|
| 23 |
# Create the Gradio interface
|
| 24 |
iface = gr.Interface(
|
| 25 |
fn=classify_image,
|
| 26 |
-
inputs=gr.
|
| 27 |
-
outputs=gr.
|
| 28 |
title="Image Classification with Materializer",
|
| 29 |
description="Upload an image to classify it using the Materializer model."
|
| 30 |
)
|
|
|
|
| 23 |
# Create the Gradio interface
|
| 24 |
iface = gr.Interface(
|
| 25 |
fn=classify_image,
|
| 26 |
+
inputs=gr.Image(type="pil"),
|
| 27 |
+
outputs=gr.Label(num_top_classes=3),
|
| 28 |
title="Image Classification with Materializer",
|
| 29 |
description="Upload an image to classify it using the Materializer model."
|
| 30 |
)
|