yerang commited on
Commit
254d2b5
·
verified ·
1 Parent(s): 6ba2521

Update app_.py

Browse files
Files changed (1) hide show
  1. app_.py +3 -8
app_.py CHANGED
@@ -151,10 +151,6 @@ def gpu_wrapped_execute_video(*args, **kwargs):
151
  @spaces.GPU()
152
  def gpu_wrapped_execute_image(*args, **kwargs):
153
  return gradio_pipeline.execute_image(*args, **kwargs)
154
-
155
- @spaces.GPU()
156
- def gpu_wrapped_execute_retargeting(*args, **kwargs):
157
- return gradio_pipeline.prepare_retargeting(*args, **kwargs)
158
 
159
 
160
  def is_square_video(video_path):
@@ -336,11 +332,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
336
  )
337
 
338
  process_button_closelip.click(
339
- fn=gpu_wrapped_execute_retargeting,
340
- inputs=image_input,
341
- outputs=image_input,
342
  show_progress=True
343
-
344
  )
345
 
346
  # audio_gen_button.click(
 
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
  )
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
  )
340
 
341
  # audio_gen_button.click(