Spaces:
Paused
Paused
Update app.py
Browse files54 unmodified lines55565758596061237 unmodified lines29930030130230330430530630730832 unmodified lines34134234334454 unmodified lines}pipe = WanImageToVideoPipeline.from_pretrained("TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING_preview7",torch_dtype=torch.bfloat16,).to('cuda')original_scheduler = copy.deepcopy(pipe.scheduler)237 unmodified linesreturn video_path, video_path, current_seedwith gr.Blocks() as demo:gr.Markdown("# WAMU - Wan 2.2 I2V (14B)")gr.Markdown("## ℹ️ **A Note on Performance:** This version prioritizes a straightforward setup over maximum speed, so performance may vary.")gr.Markdown("run Wan 2.2 in just 4-8 steps, fp8 quantization & AoT compilation - compatible with 🧨 diffusers and ZeroGPU⚡️")with gr.Row():with gr.Column():input_image_component = gr.Image(type="pil", label="Input Image")32 unmodified linesif __name__ == "__main__":demo.queue().launch(mcp_server=True)54 unmodified lines55565758596061237 unmodified lines29930030130230330430530630730832 unmodified lines34134234334434534634734854 unmodified lines}pipe = WanImageToVideoPipeline.from_pretrained("TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING",torch_dtype=torch.bfloat16,).to('cuda')original_scheduler = copy.deepcopy(pipe.scheduler)237 unmodified linesreturn video_path, video_path, current_seedwith gr.Blocks(theme=gr.themes.Soft(), delete_cache=(12800, 12800)) as demo:gr.Markdown("# WAMU V2 - Wan 2.2 I2V (14B) 🐢")gr.Markdown("## ℹ️ **A Note on Performance:** This version prioritizes a straightforward setup over maximum speed, so performance may vary.")gr.Markdown("run Wan 2.2 in just 4-8 steps, fp8 quantization & AoT compilation - compatible with 🧨 diffusers and ZeroGPU")with gr.Row():with gr.Column():input_image_component = gr.Image(type="pil", label="Input Image")32 unmodified linesif __name__ == "__main__":demo.queue().launch(mcp_server=True,ssr_mode=False,show_error=True,)
app.py+9-5