Spaces:
Running
on
A10G
Running
on
A10G
Update app.py
Browse files
app.py
CHANGED
@@ -42,6 +42,9 @@ title_md = "assets/gradio_title.md"
|
|
42 |
example_portrait_dir = "assets/examples/source"
|
43 |
example_video_dir = "assets/examples/driving"
|
44 |
|
|
|
|
|
|
|
45 |
#################### interface logic ####################
|
46 |
css="""
|
47 |
#col-container {
|
@@ -63,8 +66,6 @@ with gr.Blocks(css=css) as demo:
|
|
63 |
with gr.Column():
|
64 |
with gr.Row():
|
65 |
|
66 |
-
source_video_input = gr.Video(label="Portrait Video Source", scale=8)
|
67 |
-
|
68 |
gr.Examples(
|
69 |
examples=[
|
70 |
[osp.join(example_video_dir, "d0.mp4")],
|
@@ -77,11 +78,12 @@ with gr.Blocks(css=css) as demo:
|
|
77 |
cache_examples=False,
|
78 |
|
79 |
)
|
|
|
80 |
|
81 |
|
82 |
gr.Markdown("ββββββββββ")
|
83 |
with gr.Row():
|
84 |
-
|
85 |
gr.Examples(
|
86 |
examples=[
|
87 |
[osp.join(example_video_dir, "d0.mp4")],
|
@@ -93,6 +95,7 @@ with gr.Blocks(css=css) as demo:
|
|
93 |
inputs=[video_input],
|
94 |
cache_examples=False,
|
95 |
)
|
|
|
96 |
with gr.Accordion(open=False, label="source Animation Instructions and Options"):
|
97 |
gr.Markdown(load_description("assets/gradio_description_animation.md"))
|
98 |
with gr.Row():
|
|
|
42 |
example_portrait_dir = "assets/examples/source"
|
43 |
example_video_dir = "assets/examples/driving"
|
44 |
|
45 |
+
source_video_input = gr.Video(label="Portrait Video Source", scale=8)
|
46 |
+
video_input = gr.Video(label="Driving Portrait Video", scale=8)
|
47 |
+
|
48 |
#################### interface logic ####################
|
49 |
css="""
|
50 |
#col-container {
|
|
|
66 |
with gr.Column():
|
67 |
with gr.Row():
|
68 |
|
|
|
|
|
69 |
gr.Examples(
|
70 |
examples=[
|
71 |
[osp.join(example_video_dir, "d0.mp4")],
|
|
|
78 |
cache_examples=False,
|
79 |
|
80 |
)
|
81 |
+
source_video_input.render()
|
82 |
|
83 |
|
84 |
gr.Markdown("ββββββββββ")
|
85 |
with gr.Row():
|
86 |
+
|
87 |
gr.Examples(
|
88 |
examples=[
|
89 |
[osp.join(example_video_dir, "d0.mp4")],
|
|
|
95 |
inputs=[video_input],
|
96 |
cache_examples=False,
|
97 |
)
|
98 |
+
video_input.render()
|
99 |
with gr.Accordion(open=False, label="source Animation Instructions and Options"):
|
100 |
gr.Markdown(load_description("assets/gradio_description_animation.md"))
|
101 |
with gr.Row():
|