Spaces:
Runtime error
Runtime error
Diego Fernandez
commited on
Commit
·
ceed5f5
1
Parent(s):
2f7f294
fix: remove mirror
Browse files
app.py
CHANGED
@@ -2,6 +2,8 @@ import gradio as gr
|
|
2 |
|
3 |
from inference import inference
|
4 |
|
|
|
|
|
5 |
dd_model = gr.Dropdown(choices=["YoloV7"], value="YoloV7", label="Model")
|
6 |
|
7 |
cb_motion_estimation = gr.Checkbox(value=True, label="Motion estimation")
|
@@ -14,7 +16,14 @@ dd_track_points = gr.Dropdown(
|
|
14 |
|
15 |
slide_threshold = gr.Slider(minimum=0, maximum=1, value=0.25, label="Model confidence threshold")
|
16 |
|
17 |
-
inputs = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
outputs = "playablevideo"
|
19 |
|
20 |
iface = gr.Interface(fn=inference, inputs=inputs, outputs=outputs)
|
|
|
2 |
|
3 |
from inference import inference
|
4 |
|
5 |
+
input_video = gr.Video(mirror_webcam=False)
|
6 |
+
|
7 |
dd_model = gr.Dropdown(choices=["YoloV7"], value="YoloV7", label="Model")
|
8 |
|
9 |
cb_motion_estimation = gr.Checkbox(value=True, label="Motion estimation")
|
|
|
16 |
|
17 |
slide_threshold = gr.Slider(minimum=0, maximum=1, value=0.25, label="Model confidence threshold")
|
18 |
|
19 |
+
inputs = [
|
20 |
+
input_video,
|
21 |
+
dd_model,
|
22 |
+
cb_motion_estimation,
|
23 |
+
cb_path_draw,
|
24 |
+
dd_track_points,
|
25 |
+
slide_threshold,
|
26 |
+
]
|
27 |
outputs = "playablevideo"
|
28 |
|
29 |
iface = gr.Interface(fn=inference, inputs=inputs, outputs=outputs)
|