Spaces:
Sleeping
Sleeping
Commit
·
85808e2
1
Parent(s):
c3d571c
Update app.py
Browse files
app.py
CHANGED
@@ -93,11 +93,9 @@ classes_to_show = gr.components.Textbox(
|
|
93 |
label="Classes to filter (leave empty to detect all classes)",
|
94 |
)
|
95 |
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
description=description,
|
103 |
-
).launch()
|
|
|
93 |
label="Classes to filter (leave empty to detect all classes)",
|
94 |
)
|
95 |
|
96 |
+
gr.Interface(fn=model_inference,
|
97 |
+
inputs=[image_in, prob_threshold_slider, classes_to_show],
|
98 |
+
outputs=image_out,
|
99 |
+
title="Object Detection",
|
100 |
+
examples=["CTH.png", "carplane.webp"],
|
101 |
+
description=description).launch()
|
|
|
|