Spaces:
Running
on
Zero
Running
on
Zero
[AUTOMATED] Migration to Gradio 6.0 (#15)
Browse files- [AUTOMATED] Migration to Gradio 6.0 (b10707498b6b2020e873f3c2555bc3b5579c9f82)
- Update app.py (6eec76ee4eb4889f931dfcfe7854661dbf0843d4)
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 💻
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
|
|
|
| 4 |
colorFrom: purple
|
| 5 |
colorTo: gray
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.0.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
app.py
CHANGED
|
@@ -251,7 +251,7 @@ css = '''
|
|
| 251 |
#or_item{text-align: center; padding-top: 1em; padding-bottom: 1em; font-size: 1.1em;margin-left: .5em;margin-right: .5em;width: calc(100% - 1em)}
|
| 252 |
#fivesec{margin-top: 5em;margin-left: .5em;margin-right: .5em;width: calc(100% - 1em)}
|
| 253 |
'''
|
| 254 |
-
with gr.Blocks(
|
| 255 |
gr.Markdown("# Wan 2.2 First/Last Frame Video Fast")
|
| 256 |
gr.Markdown("Based on the [Wan 2.2 First/Last Frame workflow](https://www.reddit.com/r/StableDiffusion/comments/1me4306/psa_wan_22_does_first_frame_last_frame_out_of_the/), applied to 🧨 Diffusers + [lightx2v/Wan2.2-Lightning](https://huggingface.co/lightx2v/Wan2.2-Lightning) 8-step LoRA")
|
| 257 |
|
|
@@ -328,8 +328,9 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as app:
|
|
| 328 |
inputs=[start_image, end_image, prompt],
|
| 329 |
outputs=ui_outputs,
|
| 330 |
fn=generate_video,
|
| 331 |
-
cache_examples=
|
|
|
|
| 332 |
)
|
| 333 |
|
| 334 |
if __name__ == "__main__":
|
| 335 |
-
app.launch(share=True)
|
|
|
|
| 251 |
#or_item{text-align: center; padding-top: 1em; padding-bottom: 1em; font-size: 1.1em;margin-left: .5em;margin-right: .5em;width: calc(100% - 1em)}
|
| 252 |
#fivesec{margin-top: 5em;margin-left: .5em;margin-right: .5em;width: calc(100% - 1em)}
|
| 253 |
'''
|
| 254 |
+
with gr.Blocks() as app:
|
| 255 |
gr.Markdown("# Wan 2.2 First/Last Frame Video Fast")
|
| 256 |
gr.Markdown("Based on the [Wan 2.2 First/Last Frame workflow](https://www.reddit.com/r/StableDiffusion/comments/1me4306/psa_wan_22_does_first_frame_last_frame_out_of_the/), applied to 🧨 Diffusers + [lightx2v/Wan2.2-Lightning](https://huggingface.co/lightx2v/Wan2.2-Lightning) 8-step LoRA")
|
| 257 |
|
|
|
|
| 328 |
inputs=[start_image, end_image, prompt],
|
| 329 |
outputs=ui_outputs,
|
| 330 |
fn=generate_video,
|
| 331 |
+
cache_examples=True,
|
| 332 |
+
cache_mode="lazy"
|
| 333 |
)
|
| 334 |
|
| 335 |
if __name__ == "__main__":
|
| 336 |
+
app.launch(share=True, theme=gr.themes.Citrus(), css=css)
|