Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -475,6 +475,14 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 475 |
"./examples/okay.mp4",
|
| 476 |
],
|
| 477 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 478 |
],
|
| 479 |
inputs=[input_video],
|
| 480 |
cache_examples=False,
|
|
@@ -489,7 +497,7 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 489 |
""")
|
| 490 |
edited_frame = gr.Image(label="Ref Image", type="filepath", height=512)
|
| 491 |
replace_character_string = gr.Radio(
|
| 492 |
-
["Video β Ref Image", "Video β Ref Image"], value="Video
|
| 493 |
)
|
| 494 |
|
| 495 |
|
|
@@ -508,6 +516,10 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 508 |
"./examples/ella.png",
|
| 509 |
],
|
| 510 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 511 |
],
|
| 512 |
inputs=[edited_frame],
|
| 513 |
cache_examples=False,
|
|
@@ -521,7 +533,7 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 521 |
""")
|
| 522 |
output_video = gr.Video(label="Edited Video", height=512)
|
| 523 |
|
| 524 |
-
time_required = gr.Text(value="β Zero GPU Required: ~
|
| 525 |
action_button = gr.Button("Wan Animate π¦", variant='primary', elem_classes="button-gradient")
|
| 526 |
|
| 527 |
with gr.Accordion("Preprocessed Data", open=False, visible=False):
|
|
@@ -536,6 +548,13 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 536 |
gr.Examples(
|
| 537 |
examples=[
|
| 538 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 539 |
[
|
| 540 |
"./examples/paul.mp4",
|
| 541 |
2,
|
|
@@ -550,13 +569,6 @@ with gr.Blocks(css=css, title="Wan 2.2 Animate --replace", theme=gr.themes.Ocean
|
|
| 550 |
"Video β Ref Image"
|
| 551 |
],
|
| 552 |
|
| 553 |
-
[
|
| 554 |
-
"./examples/video.mp4",
|
| 555 |
-
2,
|
| 556 |
-
"./examples/image.jpeg",
|
| 557 |
-
"Video β Ref Image"
|
| 558 |
-
],
|
| 559 |
-
|
| 560 |
],
|
| 561 |
inputs=[input_video, max_duration_slider, edited_frame, replace_character_string],
|
| 562 |
outputs=[output_video, pose_video, bg_video, mask_video, face_video],
|
|
|
|
| 475 |
"./examples/okay.mp4",
|
| 476 |
],
|
| 477 |
|
| 478 |
+
[
|
| 479 |
+
"./examples/tell.mp4",
|
| 480 |
+
],
|
| 481 |
+
|
| 482 |
+
[
|
| 483 |
+
"./examples/truth.mp4",
|
| 484 |
+
],
|
| 485 |
+
|
| 486 |
],
|
| 487 |
inputs=[input_video],
|
| 488 |
cache_examples=False,
|
|
|
|
| 497 |
""")
|
| 498 |
edited_frame = gr.Image(label="Ref Image", type="filepath", height=512)
|
| 499 |
replace_character_string = gr.Radio(
|
| 500 |
+
["Video β Ref Image", "Video β Ref Image"], value="Video β Ref Image", show_label=False
|
| 501 |
)
|
| 502 |
|
| 503 |
|
|
|
|
| 516 |
"./examples/ella.png",
|
| 517 |
],
|
| 518 |
|
| 519 |
+
[
|
| 520 |
+
"./examples/sydney.png",
|
| 521 |
+
],
|
| 522 |
+
|
| 523 |
],
|
| 524 |
inputs=[edited_frame],
|
| 525 |
cache_examples=False,
|
|
|
|
| 533 |
""")
|
| 534 |
output_video = gr.Video(label="Edited Video", height=512)
|
| 535 |
|
| 536 |
+
time_required = gr.Text(value="β Zero GPU Required: ~195.0s (3.2 mins)", show_label=False)
|
| 537 |
action_button = gr.Button("Wan Animate π¦", variant='primary', elem_classes="button-gradient")
|
| 538 |
|
| 539 |
with gr.Accordion("Preprocessed Data", open=False, visible=False):
|
|
|
|
| 548 |
gr.Examples(
|
| 549 |
examples=[
|
| 550 |
|
| 551 |
+
[
|
| 552 |
+
"./examples/thunder.mp4",
|
| 553 |
+
2,
|
| 554 |
+
"./examples/ella.png",
|
| 555 |
+
"Video β Ref Image"
|
| 556 |
+
],
|
| 557 |
+
|
| 558 |
[
|
| 559 |
"./examples/paul.mp4",
|
| 560 |
2,
|
|
|
|
| 569 |
"Video β Ref Image"
|
| 570 |
],
|
| 571 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 572 |
],
|
| 573 |
inputs=[input_video, max_duration_slider, edited_frame, replace_character_string],
|
| 574 |
outputs=[output_video, pose_video, bg_video, mask_video, face_video],
|