Spaces:
Sleeping
Sleeping
Commit
·
afb36e0
1
Parent(s):
6a03776
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,9 +78,9 @@ title = """Object Detection"""
|
|
| 78 |
|
| 79 |
# Create examples list from "examples/" directory
|
| 80 |
# example_list = [["examples/" + example] for example in os.listdir("examples")]
|
| 81 |
-
example_list = [["carplane.webp"]]
|
| 82 |
|
| 83 |
-
image_in = gr.
|
| 84 |
image_out = gr.components.Image()
|
| 85 |
classes_to_show = gr.components.Textbox(placeholder="e.g. car, dog", label="Classes to filter (leave empty to detect all classes)")
|
| 86 |
prob_threshold_slider = gr.components.Slider(minimum=0, maximum=1.0, step=0.01, value=0.7, label="Probability Threshold")
|
|
@@ -91,5 +91,5 @@ gr.Interface(fn=model_inference,
|
|
| 91 |
outputs=image_out,
|
| 92 |
title=title,
|
| 93 |
description=description,
|
| 94 |
-
examples=example_list
|
| 95 |
).launch()
|
|
|
|
| 78 |
|
| 79 |
# Create examples list from "examples/" directory
|
| 80 |
# example_list = [["examples/" + example] for example in os.listdir("examples")]
|
| 81 |
+
# example_list = [["carplane.webp"]]
|
| 82 |
|
| 83 |
+
image_in = gr.components.Image(label="Upload an image")
|
| 84 |
image_out = gr.components.Image()
|
| 85 |
classes_to_show = gr.components.Textbox(placeholder="e.g. car, dog", label="Classes to filter (leave empty to detect all classes)")
|
| 86 |
prob_threshold_slider = gr.components.Slider(minimum=0, maximum=1.0, step=0.01, value=0.7, label="Probability Threshold")
|
|
|
|
| 91 |
outputs=image_out,
|
| 92 |
title=title,
|
| 93 |
description=description,
|
| 94 |
+
# examples=example_list
|
| 95 |
).launch()
|