Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,6 @@ output_video_concat = gr.Video()
|
|
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))
|
@@ -254,7 +253,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
254 |
cache_examples=False,
|
255 |
)
|
256 |
# ========== 여기에 closed mouth 버튼 추가 ========== #
|
257 |
-
|
|
|
|
|
258 |
|
259 |
|
260 |
|
@@ -334,7 +335,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
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=[
|
338 |
show_progress=True
|
339 |
)
|
340 |
|
|
|
199 |
|
200 |
#video_input = gr.Video()
|
201 |
driving_video_path=gr.Video()
|
|
|
202 |
|
203 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
204 |
#gr.HTML(load_description(title_md))
|
|
|
253 |
cache_examples=False,
|
254 |
)
|
255 |
# ========== 여기에 closed mouth 버튼 추가 ========== #
|
256 |
+
lip_ratio_input = gr.Number(value=0.0, label="Lip Ratio")
|
257 |
+
process_button_closelip = gr.Button("Close lip", variant="primary")
|
258 |
+
image_close_lip = gr.Image(type="filepath")
|
259 |
|
260 |
|
261 |
|
|
|
335 |
process_button_closelip.click(
|
336 |
fn=gpu_wrapped_execute_image_lip,
|
337 |
inputs=[lip_ratio_input, image_input, flag_do_crop_input],
|
338 |
+
outputs=[image_close_lip],
|
339 |
show_progress=True
|
340 |
)
|
341 |
|