Yaroslav commited on
Commit
a05b522
·
verified ·
1 Parent(s): 2ae58e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -41,9 +41,10 @@ with gr.Blocks() as demo:
41
  video_input = gr.Video(label="Input Video", sources=["upload", "webcam"])
42
  num_interpolations = gr.Slider(1, 10, step=1, label="Number of Interpolations")
43
  video_output = gr.Video(label="Interpolated Video", streaming=True, autoplay=True)
 
44
 
45
- # Define the event listener for the video input
46
- video_input.change(interpolate_frames, inputs=[video_input, num_interpolations], outputs=video_output)
47
 
48
  # Launch the interface
49
  if __name__ == "__main__":
 
41
  video_input = gr.Video(label="Input Video", sources=["upload", "webcam"])
42
  num_interpolations = gr.Slider(1, 10, step=1, label="Number of Interpolations")
43
  video_output = gr.Video(label="Interpolated Video", streaming=True, autoplay=True)
44
+ start_button = gr.Button("Start Interpolation")
45
 
46
+ # Define the event listener for the start button
47
+ start_button.click(interpolate_frames, inputs=[video_input, num_interpolations], outputs=video_output)
48
 
49
  # Launch the interface
50
  if __name__ == "__main__":