Ericwang commited on
Commit
f2bd641
·
1 Parent(s): 834eb54

changed gradio version

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -202,12 +202,13 @@ input_file_vtr = gr.File(label="Select video file")
202
  output_format_vtr = gr.Dropdown(choices=["mkv", "MOV", "mp4", "wav"], label="Select output format", value="mp4", )
203
  output_file_vtr = gr.File(label="Download trimmed file")
204
  log_file_vtr = gr.File(label="Download log file")
205
- interface_vtr = gr.Interface(fn=trim_video_vtr, inputs=[input_file_vtr, output_format_vtr], outputs=[output_file_vtr, log_file_vtr],
 
206
  title="Video Trimmer with Random Start Time",
207
  description="This app trims a 10-minute interval from a video file. \
208
  The start time is randomly selected between 5 and 15 minutes. \
209
  The log file contains the start time and end time of the trimmed video.",
210
- allow_flagging="never")
211
 
212
  # gr components for video trimmer with transcript
213
  input_file_wt = gr.File(label="Select video file")
 
202
  output_format_vtr = gr.Dropdown(choices=["mkv", "MOV", "mp4", "wav"], label="Select output format", value="mp4", )
203
  output_file_vtr = gr.File(label="Download trimmed file")
204
  log_file_vtr = gr.File(label="Download log file")
205
+ interface_vtr = gr.Interface(fn=trim_video_vtr, inputs=[input_file_vtr, output_format_vtr],
206
+ outputs=[output_file_vtr, log_file_vtr], allow_flagging="never",
207
  title="Video Trimmer with Random Start Time",
208
  description="This app trims a 10-minute interval from a video file. \
209
  The start time is randomly selected between 5 and 15 minutes. \
210
  The log file contains the start time and end time of the trimmed video.",
211
+ )
212
 
213
  # gr components for video trimmer with transcript
214
  input_file_wt = gr.File(label="Select video file")