cbensimon HF staff commited on
Commit
91e876c
1 Parent(s): 7ab8cd7

I might be really tired

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -94,15 +94,15 @@ with gr.Blocks() as demo:
94
  cached_examples: dict[str, tuple[list[str], str]] = {
95
  "monalisa": (["inputs/applications/source_image/monalisa.png", "inputs/applications/driving/densepose/running.mp4"], "inputs/applications/output/monalisa.mp4"),
96
  "demo4": (["inputs/applications/source_image/demo4.png", "inputs/applications/driving/densepose/demo4.mp4"], "inputs/applications/output/demo4.mp4"),
97
- "dalle2.": (["inputs/applications/source_image/dalle2.jpeg", "inputs/applications/driving/densepose/running2.mp4"], "inputs/applications/output/dalle2.mp4"),
98
- "dalle8.": (["inputs/applications/source_image/dalle8.jpeg", "inputs/applications/driving/densepose/dancing2.mp4"], "inputs/applications/output/dalle8.mp4"),
99
  "multi1_source": (["inputs/applications/source_image/multi1_source.png", "inputs/applications/driving/densepose/multi_dancing.mp4"], "inputs/applications/output/multi1_source.mp4"),
100
  }
101
 
102
  # Examples
103
  gr.Markdown("## Examples")
104
  gr.Examples(
105
- fn=lambda image, video: cached_examples[image['path'].split('/')[-1].removesuffix('.png')][1],
106
  examples=[inputs for inputs, output in cached_examples.values()],
107
  inputs=[reference_image, motion_sequence],
108
  outputs=animation,
 
94
  cached_examples: dict[str, tuple[list[str], str]] = {
95
  "monalisa": (["inputs/applications/source_image/monalisa.png", "inputs/applications/driving/densepose/running.mp4"], "inputs/applications/output/monalisa.mp4"),
96
  "demo4": (["inputs/applications/source_image/demo4.png", "inputs/applications/driving/densepose/demo4.mp4"], "inputs/applications/output/demo4.mp4"),
97
+ "dalle2": (["inputs/applications/source_image/dalle2.jpeg", "inputs/applications/driving/densepose/running2.mp4"], "inputs/applications/output/dalle2.mp4"),
98
+ "dalle8": (["inputs/applications/source_image/dalle8.jpeg", "inputs/applications/driving/densepose/dancing2.mp4"], "inputs/applications/output/dalle8.mp4"),
99
  "multi1_source": (["inputs/applications/source_image/multi1_source.png", "inputs/applications/driving/densepose/multi_dancing.mp4"], "inputs/applications/output/multi1_source.mp4"),
100
  }
101
 
102
  # Examples
103
  gr.Markdown("## Examples")
104
  gr.Examples(
105
+ fn=lambda image, video: cached_examples[image['path'].split('/')[-1].split('.')[0]][1],
106
  examples=[inputs for inputs, output in cached_examples.values()],
107
  inputs=[reference_image, motion_sequence],
108
  outputs=animation,