Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,6 +52,7 @@ css="""
|
|
52 |
with gr.Blocks(css=css) as demo:
|
53 |
|
54 |
with gr.Column(elem_id="col-container"):
|
|
|
55 |
|
56 |
gr.Markdown("""
|
57 |
## π€ This is the gradio demo for Vid2Vid LivePortrait.
|
@@ -61,7 +62,7 @@ with gr.Blocks(css=css) as demo:
|
|
61 |
with gr.Row():
|
62 |
with gr.Column():
|
63 |
|
64 |
-
source_video_input = gr.Video()
|
65 |
gr.Examples(
|
66 |
examples=[
|
67 |
[osp.join(example_video_dir, "d0.mp4")],
|
@@ -73,8 +74,8 @@ with gr.Blocks(css=css) as demo:
|
|
73 |
inputs=[source_video_input],
|
74 |
cache_examples=False,
|
75 |
)
|
76 |
-
|
77 |
-
video_input = gr.Video()
|
78 |
gr.Examples(
|
79 |
examples=[
|
80 |
[osp.join(example_video_dir, "d0.mp4")],
|
@@ -87,11 +88,13 @@ with gr.Blocks(css=css) as demo:
|
|
87 |
cache_examples=False,
|
88 |
)
|
89 |
gr.Markdown(load_description("assets/gradio_description_animation.md"))
|
90 |
-
with gr.
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
|
|
|
|
95 |
with gr.Row():
|
96 |
process_button_source_animation = gr.Button("π Animate video", variant="primary")
|
97 |
with gr.Column():
|
|
|
52 |
with gr.Blocks(css=css) as demo:
|
53 |
|
54 |
with gr.Column(elem_id="col-container"):
|
55 |
+
gr.HTML(load_description(title_md))
|
56 |
|
57 |
gr.Markdown("""
|
58 |
## π€ This is the gradio demo for Vid2Vid LivePortrait.
|
|
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
|
65 |
+
source_video_input = gr.Video(label="Portrait Video Source")
|
66 |
gr.Examples(
|
67 |
examples=[
|
68 |
[osp.join(example_video_dir, "d0.mp4")],
|
|
|
74 |
inputs=[source_video_input],
|
75 |
cache_examples=False,
|
76 |
)
|
77 |
+
gr.Markdown("ββββββββββ")
|
78 |
+
video_input = gr.Video(label="Driving Portrait Video")
|
79 |
gr.Examples(
|
80 |
examples=[
|
81 |
[osp.join(example_video_dir, "d0.mp4")],
|
|
|
88 |
cache_examples=False,
|
89 |
)
|
90 |
gr.Markdown(load_description("assets/gradio_description_animation.md"))
|
91 |
+
with gr.Accordion(open=False, label="source Animation Instructions and Options"):
|
92 |
+
gr.Markdown(load_description("assets/gradio_description_animation.md"))
|
93 |
+
with gr.Row():
|
94 |
+
flag_relative_input = gr.Checkbox(value=True, label="relative motion")
|
95 |
+
flag_do_crop_input = gr.Checkbox(value=True, label="do crop (source)")
|
96 |
+
flag_remap_input = gr.Checkbox(value=True, label="paste-back")
|
97 |
+
flag_crop_driving_video_input = gr.Checkbox(value=False, label="do crop (driving video)")
|
98 |
with gr.Row():
|
99 |
process_button_source_animation = gr.Button("π Animate video", variant="primary")
|
100 |
with gr.Column():
|