PKaushik commited on
Commit
faae0b4
1 Parent(s): 0397646

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 1, value=2, label="Duration", step=1),
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=[