Hamza011 commited on
Commit
39caf4f
·
verified ·
1 Parent(s): c1cecd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
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
- 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()
 
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()