multimodalart HF Staff commited on
Commit
9f2b060
·
verified ·
1 Parent(s): e75a609

[AUTOMATED] Migration to Gradio 6.0 (#31)

Browse files

- [AUTOMATED] Migration to Gradio 6.0 (e3fb944b0058f3dbc1d72c9e60730aa880770271)

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: gray
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 5.44.1
8
  app_file: app.py
9
  pinned: true
10
  short_description: generate a video from an image with a text prompt
 
4
  colorFrom: gray
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 6.0.0
8
  app_file: app.py
9
  pinned: true
10
  short_description: generate a video from an image with a text prompt
app.py CHANGED
@@ -262,7 +262,7 @@ with gr.Blocks() as demo:
262
  examples=[
263
  [
264
  "wan_i2v_input.JPG",
265
- "POV selfie video, white cat with sunglasses standing on surfboard, relaxed smile, tropical beach behind (clear water, green hills, blue sky with clouds). Surfboard tips, cat falls into ocean, camera plunges underwater with bubbles and sunlight beams. Brief underwater view of cats face, then cat resurfaces, still filming selfie, playful summer vacation mood.",
266
  4,
267
  ],
268
  [
@@ -276,7 +276,7 @@ with gr.Blocks() as demo:
276
  6,
277
  ],
278
  ],
279
- inputs=[input_image_component, prompt_input, steps_slider], outputs=[video_output, seed_input], fn=generate_video, cache_examples="lazy"
280
  )
281
 
282
  if __name__ == "__main__":
 
262
  examples=[
263
  [
264
  "wan_i2v_input.JPG",
265
+ "POV selfie video, white cat with sunglasses standing on surfboard, relaxed smile, tropical beach behind (clear water, green hills, blue sky with clouds). Surfboard tips, cat falls into ocean, camera plunges underwater with bubbles and sunlight beams. Brief underwater view of cat's face, then cat resurfaces, still filming selfie, playful summer vacation mood.",
266
  4,
267
  ],
268
  [
 
276
  6,
277
  ],
278
  ],
279
+ inputs=[input_image_component, prompt_input, steps_slider], outputs=[video_output, seed_input], fn=generate_video, cache_examples=True, cache_mode="lazy"
280
  )
281
 
282
  if __name__ == "__main__":