jonathang commited on
Commit
00451f0
1 Parent(s): d28d609

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def download_and_process_video(in_f, threshold_db, buffer_sec):
52
  iface = gr.Interface(
53
  fn=download_and_process_video,
54
  inputs=[
55
- gr.inputs.File(label="Video File", file_types=["mp4"], type='file'),
56
  gr.inputs.Slider(minimum=1, maximum=70, step=1, default=30, label="Threshold (db)"),
57
  gr.inputs.Slider(minimum=0, maximum=2, step=0.01, default=0.1, label="Buffer (sec)"),
58
  ],
 
52
  iface = gr.Interface(
53
  fn=download_and_process_video,
54
  inputs=[
55
+ gr.inputs.File(label="Video File (.mp4 only)", file_count='single', type='file'),
56
  gr.inputs.Slider(minimum=1, maximum=70, step=1, default=30, label="Threshold (db)"),
57
  gr.inputs.Slider(minimum=0, maximum=2, step=0.01, default=0.1, label="Buffer (sec)"),
58
  ],