yerang commited on
Commit
a571a60
·
verified ·
1 Parent(s): e3070b6

Rename app_.py to app.py

Browse files
Files changed (1) hide show
  1. app_.py → app.py +4 -4
app_.py → app.py RENAMED
@@ -149,8 +149,8 @@ def gpu_wrapped_execute_video(*args, **kwargs):
149
  return gradio_pipeline.execute_video(*args, **kwargs)
150
 
151
  @spaces.GPU()
152
- def gpu_wrapped_execute_image(*args, **kwargs):
153
- return gradio_pipeline.execute_image(*args, **kwargs)
154
 
155
 
156
  def is_square_video(video_path):
@@ -332,8 +332,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
332
  )
333
 
334
  process_button_closelip.click(
335
- fn=gpu_wrapped_execute_image,
336
- inputs=[lip_retargeting_slider, image_input, flag_do_crop_input],
337
  outputs=[image_input],
338
  show_progress=True
339
  )
 
149
  return gradio_pipeline.execute_video(*args, **kwargs)
150
 
151
  @spaces.GPU()
152
+ def gpu_wrapped_execute_image_lip(*args, **kwargs):
153
+ return gradio_pipeline.execute_image_lip(*args, **kwargs)
154
 
155
 
156
  def is_square_video(video_path):
 
332
  )
333
 
334
  process_button_closelip.click(
335
+ fn=gpu_wrapped_execute_image_lip,
336
+ inputs=[float(0), image_input, flag_do_crop_input],
337
  outputs=[image_input],
338
  show_progress=True
339
  )