Spaces:
Runtime error
Runtime error
Will work now
Browse files
app.py
CHANGED
@@ -92,17 +92,17 @@ with gr.Blocks() as demo:
|
|
92 |
)
|
93 |
|
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.
|
96 |
-
"demo4": (["inputs/applications/source_image/demo4.png", "inputs/applications/driving/densepose/demo4.mp4"], "inputs/applications/output/demo4.
|
97 |
-
"dalle2.": (["inputs/applications/source_image/dalle2.jpeg", "inputs/applications/driving/densepose/running2.mp4"], "inputs/applications/output/dalle2.
|
98 |
-
"dalle8.": (["inputs/applications/source_image/dalle8.jpeg", "inputs/applications/driving/densepose/dancing2.mp4"], "inputs/applications/output/dalle8.
|
99 |
-
"multi1_source": (["inputs/applications/source_image/multi1_source.png", "inputs/applications/driving/densepose/multi_dancing.mp4"], "inputs/applications/output/multi1_source.
|
100 |
}
|
101 |
|
102 |
# Examples
|
103 |
gr.Markdown("## Examples")
|
104 |
gr.Examples(
|
105 |
-
fn=lambda image, video: cached_examples[image['path'].split('/')[-1].removesuffix('.png')],
|
106 |
examples=[inputs for inputs, output in cached_examples.values()],
|
107 |
inputs=[reference_image, motion_sequence],
|
108 |
outputs=animation,
|
|
|
92 |
)
|
93 |
|
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,
|