multimodalart HF staff commited on
Commit
2aed33b
1 Parent(s): 913899c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -66,7 +66,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
66
  with gr.Accordion(open=True, label="Driving Video"):
67
  video_input = gr.Video()
68
  gr.Examples(
69
- examples=[[osp.join(example_portrait_dir, "s9.jpg")], [osp.join(example_video_dir, "d0.mp4")], [osp.join(example_video_dir, "d6.mp4")]],
70
  inputs=[video_input],
71
  cache_examples=False
72
  )
@@ -102,10 +102,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
102
  flag_do_crop_input,
103
  flag_remap_input
104
  ],
105
- outputs=[output_image, output_image_paste_back],
106
  examples_per_page=5,
107
- cache_examples="lazy",
108
- fn=lambda *args: spaces.GPU()(gradio_pipeline.execute_video)(*args),
109
  )
110
  gr.Markdown(load_description("assets/gradio_description_retargeting.md"))
111
  with gr.Row():
 
66
  with gr.Accordion(open=True, label="Driving Video"):
67
  video_input = gr.Video()
68
  gr.Examples(
69
+ examples=[[osp.join(example_portrait_dir, "d0.mp4")], [osp.join(example_video_dir, "d5.mp4")], [osp.join(example_video_dir, "d6.mp4"), [osp.join(example_video_dir, "d7.mp4")]],
70
  inputs=[video_input],
71
  cache_examples=False
72
  )
 
102
  flag_do_crop_input,
103
  flag_remap_input
104
  ],
105
+ #outputs=[output_image, output_image_paste_back],
106
  examples_per_page=5,
107
+ #cache_examples="lazy",
108
+ #fn=lambda *args: spaces.GPU()(gradio_pipeline.execute_video)(*args),
109
  )
110
  gr.Markdown(load_description("assets/gradio_description_retargeting.md"))
111
  with gr.Row():