fffiloni commited on
Commit
718353e
β€’
1 Parent(s): 40fea06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -42,8 +42,8 @@ title_md = "assets/gradio_title.md"
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, elem_id="portrait-source")
46
- video_input = gr.Video(label="Driving Portrait Video", scale=8, elem_id="driving-video")
47
 
48
  #################### interface logic ####################
49
  css="""
@@ -51,7 +51,7 @@ css="""
51
  max_width: 1400px;
52
  margin: 0 auto;
53
  }
54
- #portrait-source, #driving-vid{
55
  margin-right: -80px;
56
  }
57
  """
@@ -79,12 +79,11 @@ with gr.Blocks(css=css) as demo:
79
  ],
80
  inputs=[source_video_input],
81
  cache_examples=False,
82
-
83
  )
84
  source_video_input.render()
85
 
86
-
87
- gr.Markdown("β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”")
88
  with gr.Row():
89
 
90
  gr.Examples(
@@ -97,6 +96,7 @@ with gr.Blocks(css=css) as demo:
97
  ],
98
  inputs=[video_input],
99
  cache_examples=False,
 
100
  )
101
  video_input.render()
102
  with gr.Accordion(open=False, label="source Animation Instructions and Options"):
 
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="""
 
51
  max_width: 1400px;
52
  margin: 0 auto;
53
  }
54
+ #portrait-source-examples, #driving-video-examples{
55
  margin-right: -80px;
56
  }
57
  """
 
79
  ],
80
  inputs=[source_video_input],
81
  cache_examples=False,
82
+ elem_id="portrait-source-examples"
83
  )
84
  source_video_input.render()
85
 
86
+
 
87
  with gr.Row():
88
 
89
  gr.Examples(
 
96
  ],
97
  inputs=[video_input],
98
  cache_examples=False,
99
+ elem_id="driving-video-examples"
100
  )
101
  video_input.render()
102
  with gr.Accordion(open=False, label="source Animation Instructions and Options"):