Spaces:
Runtime error
Runtime error
Commit
·
5f1c76a
1
Parent(s):
15e5d7b
fixed cosmetic issue
Browse files
app.py
CHANGED
@@ -207,7 +207,7 @@ with gr.Blocks() as demo:
|
|
207 |
video_conf_threshold = gr.Slider(label="Confidence Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.25)
|
208 |
gr.Examples(examples=examples_videos,inputs=video_input,outputs=video_output)
|
209 |
video_button_detect = gr.Button("Detect")
|
210 |
-
|
211 |
|
212 |
# with gr.Tab("Webcam Video"):
|
213 |
# gr.Markdown("## YOLOv7 Inference on Webcam Video")
|
@@ -219,7 +219,7 @@ with gr.Blocks() as demo:
|
|
219 |
video_button_detect.click(inference2, inputs=[video_input,video_drop,
|
220 |
video_iou_threshold,video_conf_threshold],
|
221 |
outputs=[video_output,fps_video])
|
222 |
-
|
223 |
video_iou_threshold,video_conf_threshold],
|
224 |
outputs=[video_output,fps_video])
|
225 |
|
|
|
207 |
video_conf_threshold = gr.Slider(label="Confidence Threshold",interactive=True, minimum=0.0, maximum=1.0, value=0.25)
|
208 |
gr.Examples(examples=examples_videos,inputs=video_input,outputs=video_output)
|
209 |
video_button_detect = gr.Button("Detect")
|
210 |
+
video_button_track = gr.Button("Detect and track")
|
211 |
|
212 |
# with gr.Tab("Webcam Video"):
|
213 |
# gr.Markdown("## YOLOv7 Inference on Webcam Video")
|
|
|
219 |
video_button_detect.click(inference2, inputs=[video_input,video_drop,
|
220 |
video_iou_threshold,video_conf_threshold],
|
221 |
outputs=[video_output,fps_video])
|
222 |
+
video_button_track.click(inference2, inputs=[video_input,video_drop,
|
223 |
video_iou_threshold,video_conf_threshold],
|
224 |
outputs=[video_output,fps_video])
|
225 |
|