fffiloni commited on
Commit
3c3adba
1 Parent(s): c1ba3d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -233,14 +233,14 @@ with gr.Blocks(css=css) as demo :
233
  )
234
  gr.Examples(
235
  examples = ["examples/train.mp4"],
236
- inputs = [video_cut]
237
  )
238
  with gr.Column():
239
  video_cut = gr.Video(label="Video cut to 10 seconds", interactive=False)
240
  submit_btn = gr.Button("Submit")
241
  video_description = gr.Textbox(label="Video description", elem_id="video-text")
242
 
243
- video_in.upload(
244
  fn = trim_video,
245
  inputs = [video_in],
246
  outputs = [video_cut],
 
233
  )
234
  gr.Examples(
235
  examples = ["examples/train.mp4"],
236
+ inputs = [video_in]
237
  )
238
  with gr.Column():
239
  video_cut = gr.Video(label="Video cut to 10 seconds", interactive=False)
240
  submit_btn = gr.Button("Submit")
241
  video_description = gr.Textbox(label="Video description", elem_id="video-text")
242
 
243
+ video_in.input(
244
  fn = trim_video,
245
  inputs = [video_in],
246
  outputs = [video_cut],