Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,11 +31,11 @@ def predict(image):
|
|
| 31 |
|
| 32 |
return predicted_class
|
| 33 |
|
| 34 |
-
# Define the Gradio interface
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=predict,
|
| 37 |
-
inputs=gr.
|
| 38 |
-
outputs=gr.
|
| 39 |
title="Monkeypox Classifier",
|
| 40 |
description="Upload an image of skin lesions to classify the disease."
|
| 41 |
)
|
|
|
|
| 31 |
|
| 32 |
return predicted_class
|
| 33 |
|
| 34 |
+
# Define the Gradio interface using the updated API
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=predict,
|
| 37 |
+
inputs=gr.Image(type="numpy", label="Upload Image"),
|
| 38 |
+
outputs=gr.Label(num_top_classes=1, label="Predicted Class"),
|
| 39 |
title="Monkeypox Classifier",
|
| 40 |
description="Upload an image of skin lesions to classify the disease."
|
| 41 |
)
|