multimodalart HF staff commited on
Commit
15ec329
1 Parent(s): c687a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -112,12 +112,6 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
112
  with gr.Row():
113
  gr.Examples(
114
  examples=data_examples,
115
- fn=gradio_pipeline.prepare_retargeting,
116
- inputs=image_input,
117
- outputs=[eye_retargeting_slider, lip_retargeting_slider, retargeting_input_image],
118
- examples_per_page=5,
119
- cache_examples="lazy",
120
- ).then(
121
  fn=lambda *args: spaces.GPU()(gradio_pipeline.execute_video)(*args),
122
  inputs=[
123
  image_input,
@@ -127,6 +121,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
127
  flag_remap_input
128
  ],
129
  outputs=[output_image, output_image_paste_back],
 
 
130
  )
131
  gr.Markdown(load_description("assets/gradio_description_retargeting.md"))
132
  with gr.Row():
 
112
  with gr.Row():
113
  gr.Examples(
114
  examples=data_examples,
 
 
 
 
 
 
115
  fn=lambda *args: spaces.GPU()(gradio_pipeline.execute_video)(*args),
116
  inputs=[
117
  image_input,
 
121
  flag_remap_input
122
  ],
123
  outputs=[output_image, output_image_paste_back],
124
+ examples_per_page=5,
125
+ cache_examples="lazy",
126
  )
127
  gr.Markdown(load_description("assets/gradio_description_retargeting.md"))
128
  with gr.Row():