Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ video_interface = gr.Interface(
|
|
86 |
gr.Slider(0, 1, value=0.25, label="Confidence Threshold"),
|
87 |
gr.Slider(0, 1, value=0.45, label="IOU Threshold"),
|
88 |
gr.Slider(0, 120, value=0, label="Start Second", step=1),
|
89 |
-
gr.Slider(0, 120 if pipeline.device.type != 'cpu' else
|
90 |
],
|
91 |
outputs=gr.Video(type="file", format="mp4"),
|
92 |
examples=[
|
|
|
86 |
gr.Slider(0, 1, value=0.25, label="Confidence Threshold"),
|
87 |
gr.Slider(0, 1, value=0.45, label="IOU Threshold"),
|
88 |
gr.Slider(0, 120, value=0, label="Start Second", step=1),
|
89 |
+
gr.Slider(0, 120 if pipeline.device.type != 'cpu' else 60, value=120, label="Duration", step=1),
|
90 |
],
|
91 |
outputs=gr.Video(type="file", format="mp4"),
|
92 |
examples=[
|