Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -73,17 +73,17 @@ with gr.Blocks(css=css) as demo:
|
|
| 73 |
with gr.Column(elem_classes=["my-column"]):
|
| 74 |
with gr.Group(elem_classes=["my-group"]):
|
| 75 |
image = WebRTC(label="Stream", rtc_configuration=None)
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
|
| 84 |
-
image.stream(
|
| 85 |
-
|
| 86 |
-
)
|
| 87 |
|
| 88 |
if __name__ == "__main__":
|
| 89 |
demo.launch()
|
|
|
|
| 73 |
with gr.Column(elem_classes=["my-column"]):
|
| 74 |
with gr.Group(elem_classes=["my-group"]):
|
| 75 |
image = WebRTC(label="Stream", rtc_configuration=None)
|
| 76 |
+
# conf_threshold = gr.Slider(
|
| 77 |
+
# label="Confidence Threshold",
|
| 78 |
+
# minimum=0.0,
|
| 79 |
+
# maximum=1.0,
|
| 80 |
+
# step=0.05,
|
| 81 |
+
# value=0.30,
|
| 82 |
+
# )
|
| 83 |
|
| 84 |
+
# image.stream(
|
| 85 |
+
# fn=detect_objects_in_frame, inputs=[image, conf_threshold], outputs=[image], time_limit=10
|
| 86 |
+
# )
|
| 87 |
|
| 88 |
if __name__ == "__main__":
|
| 89 |
demo.launch()
|