multimodalart HF staff commited on
Commit
9823588
1 Parent(s): 6f931e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -63,6 +63,11 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
63
  image_input = gr.Image(type="filepath")
64
  with gr.Accordion(open=True, label="Driving Video"):
65
  video_input = gr.Video()
 
 
 
 
 
66
  gr.Markdown(load_description("assets/gradio_description_animation.md"))
67
  with gr.Row():
68
  with gr.Accordion(open=True, label="Animation Options"):
@@ -95,7 +100,8 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
95
  flag_do_crop_input,
96
  flag_remap_input
97
  ],
98
- examples_per_page=5
 
99
  )
100
  gr.Markdown(load_description("assets/gradio_description_retargeting.md"))
101
  with gr.Row():
 
63
  image_input = gr.Image(type="filepath")
64
  with gr.Accordion(open=True, label="Driving Video"):
65
  video_input = gr.Video()
66
+ gr.Examples(
67
+ examples=[[osp.join(example_portrait_dir, "s9.jpg")], [osp.join(example_video_dir, "d0.mp4")], [osp.join(example_video_dir, "d6.mp4")]],
68
+ intpus=[video_input],
69
+ cache_examples=False
70
+ )
71
  gr.Markdown(load_description("assets/gradio_description_animation.md"))
72
  with gr.Row():
73
  with gr.Accordion(open=True, label="Animation Options"):
 
100
  flag_do_crop_input,
101
  flag_remap_input
102
  ],
103
+ examples_per_page=5,
104
+ cache_examples="lazy"
105
  )
106
  gr.Markdown(load_description("assets/gradio_description_retargeting.md"))
107
  with gr.Row():