multimodalart HF Staff commited on
Commit
b107074
·
verified ·
1 Parent(s): ffebb29

[AUTOMATED] Migration to Gradio 6.0

Browse files

This PR migrates the Space to Gradio 6.0.

### Changes
- `README.md`: Updated `sdk_version` to `6.0.0`
- `app.py`: Automated refactoring using `moonshotai/Kimi-K2-Thinking` based on the migration guide.

Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +2 -2
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 💻
4
  colorFrom: purple
5
  colorTo: gray
6
  sdk: gradio
7
- sdk_version: 5.44.1
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(theme=gr.themes.Citrus(), css=css) 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
 
@@ -332,4 +332,4 @@ with gr.Blocks(theme=gr.themes.Citrus(), css=css) as app:
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
 
 
332
  )
333
 
334
  if __name__ == "__main__":
335
+ app.launch(share=True, theme=gr.themes.Citrus(), css=css)