Spaces:
Runtime error
Runtime error
yourusername
commited on
Commit
Β·
1cdde98
1
Parent(s):
a83e38d
:beers: shoutout to freddy
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ video_interface = gr.Interface(
|
|
91 |
gr.Slider(0, 1, value=0.25, label="Confidence Threshold"),
|
92 |
gr.Slider(0, 1, value=0.45, label="IOU Threshold"),
|
93 |
gr.Slider(0, 10, value=0, label="Start Second", step=1),
|
94 |
-
gr.Slider(0,
|
95 |
],
|
96 |
outputs=gr.Video(type="file", format="mp4"),
|
97 |
examples=[
|
|
|
91 |
gr.Slider(0, 1, value=0.25, label="Confidence Threshold"),
|
92 |
gr.Slider(0, 1, value=0.45, label="IOU Threshold"),
|
93 |
gr.Slider(0, 10, value=0, label="Start Second", step=1),
|
94 |
+
gr.Slider(0, 10 if pipeline.device.type != 'cpu' else 3, value=4, label="Duration", step=1),
|
95 |
],
|
96 |
outputs=gr.Video(type="file", format="mp4"),
|
97 |
examples=[
|