Update app.py
Browse files
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 = [
|
| 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.
|
| 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],
|