prithivMLmods commited on
Commit
5dc62c6
·
verified ·
1 Parent(s): 2e73dfb

Update wan_app.py

Browse files
Files changed (1) hide show
  1. wan_app.py +29 -29
wan_app.py CHANGED
@@ -538,6 +538,35 @@ with gr.Blocks(title="wan2.2-i2v-fast") as demo:
538
  download_components.append(download_btn)
539
  group_components.append(card_group)
540
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
541
  ui_inputs = [
542
  input_image_component, prompt_input, steps_slider,
543
  negative_prompt_input, duration_seconds_input,
@@ -557,34 +586,5 @@ with gr.Blocks(title="wan2.2-i2v-fast") as demo:
557
  outputs=ui_outputs,
558
  )
559
 
560
- gr.Examples(
561
- examples=[
562
- [
563
- "example-file/6b2842cf438d086f556eef05cc29d2d1.jpg",
564
- "make this image come alive, cinematic motion, smooth animation.",
565
- 4,
566
- ],
567
- [
568
- "example-file/wan_i2v_input.JPG",
569
- "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.",
570
- 4,
571
- ],
572
- [
573
- "example-file/wan22_input_2.jpg",
574
- "A sleek lunar vehicle glides into view from left to right, kicking up moon dust as astronauts in white spacesuits hop aboard with characteristic lunar bouncing movements. In the distant background, a VTOL craft descends straight down and lands silently on the surface. Throughout the entire scene, ethereal aurora borealis ribbons dance across the star-filled sky, casting shimmering curtains of green, blue, and purple light that bathe the lunar landscape in an otherworldly, magical glow.",
575
- 4,
576
- ],
577
- [
578
- "example-file/kill_bill.jpeg",
579
- "Uma Thurman's character, Beatrix Kiddo, holds her razor-sharp katana blade steady in the cinematic lighting. Suddenly, the polished steel begins to soften and distort, like heated metal starting to lose its structural integrity. The blade's perfect edge slowly warps and droops, molten steel beginning to flow downward in silvery rivulets while maintaining its metallic sheen. The transformation starts subtly at first - a slight bend in the blade - then accelerates as the metal becomes increasingly fluid. The camera holds steady on her face as her piercing eyes gradually narrow, not with lethal focus, but with confusion and growing alarm as she watches her weapon dissolve before her eyes. Her breathing quickens slightly as she witnesses this impossible transformation. The melting intensifies, the katana's perfect form becoming increasingly abstract, dripping like liquid mercury from her grip. Molten droplets fall to the ground with soft metallic impacts. Her expression shifts from calm readiness to bewilderment and concern as her legendary instrument of vengeance literally liquefies in her hands, leaving her defenseless and disoriented.",
580
- 6,
581
- ],
582
- ],
583
- inputs=[input_image_component, prompt_input, steps_slider],
584
- outputs=[video_output, seed_input],
585
- fn=generate_video,
586
- cache_examples=False,
587
- )
588
-
589
  if __name__ == "__main__":
590
  demo.queue().launch(theme=orange_red_theme, mcp_server=True, css=css, show_error=True)
 
538
  download_components.append(download_btn)
539
  group_components.append(card_group)
540
 
541
+ gr.Examples(
542
+ examples=[
543
+ [
544
+ "example-file/6b2842cf438d086f556eef05cc29d2d1.jpg",
545
+ "make this image come alive, cinematic motion, smooth animation.",
546
+ 4,
547
+ ],
548
+ [
549
+ "example-file/wan_i2v_input.JPG",
550
+ "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.",
551
+ 4,
552
+ ],
553
+ [
554
+ "example-file/wan22_input_2.jpg",
555
+ "A sleek lunar vehicle glides into view from left to right, kicking up moon dust as astronauts in white spacesuits hop aboard with characteristic lunar bouncing movements. In the distant background, a VTOL craft descends straight down and lands silently on the surface. Throughout the entire scene, ethereal aurora borealis ribbons dance across the star-filled sky, casting shimmering curtains of green, blue, and purple light that bathe the lunar landscape in an otherworldly, magical glow.",
556
+ 4,
557
+ ],
558
+ [
559
+ "example-file/kill_bill.jpeg",
560
+ "Uma Thurman's character, Beatrix Kiddo, holds her razor-sharp katana blade steady in the cinematic lighting. Suddenly, the polished steel begins to soften and distort, like heated metal starting to lose its structural integrity. The blade's perfect edge slowly warps and droops, molten steel beginning to flow downward in silvery rivulets while maintaining its metallic sheen. The transformation starts subtly at first - a slight bend in the blade - then accelerates as the metal becomes increasingly fluid. The camera holds steady on her face as her piercing eyes gradually narrow, not with lethal focus, but with confusion and growing alarm as she watches her weapon dissolve before her eyes. Her breathing quickens slightly as she witnesses this impossible transformation. The melting intensifies, the katana's perfect form becoming increasingly abstract, dripping like liquid mercury from her grip. Molten droplets fall to the ground with soft metallic impacts. Her expression shifts from calm readiness to bewilderment and concern as her legendary instrument of vengeance literally liquefies in her hands, leaving her defenseless and disoriented.",
561
+ 6,
562
+ ],
563
+ ],
564
+ inputs=[input_image_component, prompt_input, steps_slider],
565
+ outputs=[video_output, seed_input],
566
+ fn=generate_video,
567
+ cache_examples=False,
568
+ )
569
+
570
  ui_inputs = [
571
  input_image_component, prompt_input, steps_slider,
572
  negative_prompt_input, duration_seconds_input,
 
586
  outputs=ui_outputs,
587
  )
588
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
589
  if __name__ == "__main__":
590
  demo.queue().launch(theme=orange_red_theme, mcp_server=True, css=css, show_error=True)