Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,7 @@ output_video_concat = gr.Video()
|
|
199 |
|
200 |
#video_input = gr.Video()
|
201 |
driving_video_path=gr.Video()
|
202 |
-
|
203 |
|
204 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
205 |
#gr.HTML(load_description(title_md))
|
@@ -330,10 +330,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
330 |
outputs=[video_input],
|
331 |
show_progress=True
|
332 |
)
|
333 |
-
|
334 |
process_button_closelip.click(
|
335 |
fn=gpu_wrapped_execute_image_lip,
|
336 |
-
inputs=[
|
337 |
outputs=[image_input],
|
338 |
show_progress=True
|
339 |
)
|
|
|
199 |
|
200 |
#video_input = gr.Video()
|
201 |
driving_video_path=gr.Video()
|
202 |
+
lip_ratio_input = gr.Number(value=0.0, label="Lip Ratio")
|
203 |
|
204 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
205 |
#gr.HTML(load_description(title_md))
|
|
|
330 |
outputs=[video_input],
|
331 |
show_progress=True
|
332 |
)
|
333 |
+
|
334 |
process_button_closelip.click(
|
335 |
fn=gpu_wrapped_execute_image_lip,
|
336 |
+
inputs=[lip_ratio_input, image_input, flag_do_crop_input],
|
337 |
outputs=[image_input],
|
338 |
show_progress=True
|
339 |
)
|