Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,11 @@ def classify_image(image):
|
|
31 |
|
32 |
interface = gr.Interface(
|
33 |
fn=classify_image,
|
34 |
-
inputs=
|
35 |
-
|
|
|
|
|
|
|
36 |
title="Multi-Label Image Classification",
|
37 |
description="Upload an image to get classification results."
|
38 |
)
|
|
|
31 |
|
32 |
interface = gr.Interface(
|
33 |
fn=classify_image,
|
34 |
+
inputs=[
|
35 |
+
gr.Image(type="pil"),
|
36 |
+
gr.Slider(minimum=0, maximum=1, value=0.5, label="Probability Threshold")
|
37 |
+
],
|
38 |
+
outputs=gr.Label(num_top_classes=None),
|
39 |
title="Multi-Label Image Classification",
|
40 |
description="Upload an image to get classification results."
|
41 |
)
|