Spaces:
Runtime error
Runtime error
Besar
commited on
Commit
·
9d8ae1f
1
Parent(s):
93fc3ca
app.py
CHANGED
|
@@ -76,10 +76,7 @@ def get_prompt(click_state, click_input):
|
|
| 76 |
|
| 77 |
def process_video(video_url):
|
| 78 |
|
| 79 |
-
|
| 80 |
-
video_path = f"{tmp_dir}/input_video.mp4"
|
| 81 |
-
|
| 82 |
-
urllib.request.urlretrieve(video_url, video_path)
|
| 83 |
|
| 84 |
return get_frames_from_video(video_path)
|
| 85 |
|
|
@@ -564,7 +561,7 @@ with gr.Blocks() as iface:
|
|
| 564 |
|
| 565 |
# first step: get the video information
|
| 566 |
|
| 567 |
-
video_input.
|
| 568 |
fn=get_frames_from_video,
|
| 569 |
inputs=[video_input, video_state],
|
| 570 |
outputs=[video_state, video_info, template_frame, image_selection_slider,
|
|
|
|
| 76 |
|
| 77 |
def process_video(video_url):
|
| 78 |
|
| 79 |
+
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
return get_frames_from_video(video_path)
|
| 82 |
|
|
|
|
| 561 |
|
| 562 |
# first step: get the video information
|
| 563 |
|
| 564 |
+
video_input.click(
|
| 565 |
fn=get_frames_from_video,
|
| 566 |
inputs=[video_input, video_state],
|
| 567 |
outputs=[video_state, video_info, template_frame, image_selection_slider,
|