denizaybey commited on
Commit
d9dd6bb
·
verified ·
1 Parent(s): 4fb4773

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -294,7 +294,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
294
  with gr.Row():
295
  with gr.Column(scale=1, min_width=300):
296
  with gr.Group():
297
- video_input = create_video_inputs()
298
  video_detect_button, video_clear_button = create_button_row()
299
  with gr.Column(scale=2):
300
  video_output = gr.Video(
@@ -303,10 +303,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
303
  elem_classes="output-component",
304
  )
305
  video_clear_button.click(
306
- fn=lambda: (
307
- None,
308
- None
309
- ),
310
  outputs=[
311
  video_input,
312
  video_output
 
294
  with gr.Row():
295
  with gr.Column(scale=1, min_width=300):
296
  with gr.Group():
297
+ video_input = create_video_inputs()[0]
298
  video_detect_button, video_clear_button = create_button_row()
299
  with gr.Column(scale=2):
300
  video_output = gr.Video(
 
303
  elem_classes="output-component",
304
  )
305
  video_clear_button.click(
306
+ fn=lambda: (None,None),
 
 
 
307
  outputs=[
308
  video_input,
309
  video_output