Yaroslav
commited on
Update app.py
Browse files
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
|
46 |
-
|
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__":
|