Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -302,6 +302,12 @@ def _animate(input_video, max_duration_s, edited_frame, rc_bool, session_id = No
|
|
| 302 |
|
| 303 |
return output_video_path
|
| 304 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 305 |
def animate_scene(input_video, max_duration_s, edited_frame, rc_str, session_id = None, progress=gr.Progress(track_tqdm=True),):
|
| 306 |
|
| 307 |
if not input_video:
|
|
@@ -605,7 +611,7 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 605 |
],
|
| 606 |
inputs=[input_video, max_duration_slider, edited_frame, replace_character_string],
|
| 607 |
outputs=[output_video, pose_video, bg_video, mask_video, face_video],
|
| 608 |
-
fn=
|
| 609 |
cache_examples=True,
|
| 610 |
)
|
| 611 |
|
|
|
|
| 302 |
|
| 303 |
return output_video_path
|
| 304 |
|
| 305 |
+
def animate_example(input_video, max_duration_s, edited_frame, rc_str, session_id = None, progress=gr.Progress(track_tqdm=True),):
|
| 306 |
+
|
| 307 |
+
print("Example used")
|
| 308 |
+
|
| 309 |
+
return animate_scene(input_video, max_duration_s, edited_frame, rc_str, session_id, progress)
|
| 310 |
+
|
| 311 |
def animate_scene(input_video, max_duration_s, edited_frame, rc_str, session_id = None, progress=gr.Progress(track_tqdm=True),):
|
| 312 |
|
| 313 |
if not input_video:
|
|
|
|
| 611 |
],
|
| 612 |
inputs=[input_video, max_duration_slider, edited_frame, replace_character_string],
|
| 613 |
outputs=[output_video, pose_video, bg_video, mask_video, face_video],
|
| 614 |
+
fn=animate_example,
|
| 615 |
cache_examples=True,
|
| 616 |
)
|
| 617 |
|