Spaces:
Paused
Paused
Update app.py
Browse files54 unmodified lines5556575858596061237 unmodified lines29930030130230330230330430530530630730832 unmodified lines34134234334434434534634734854 unmodified lines}
pipe = WanImageToVideoPipeline.from_pretrained( "TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING_preview7", "TestOrganizationPleaseIgnore/WAMU_v2_WAN2.2_I2V_LIGHTNING", torch_dtype=torch.bfloat16,).to('cuda')original_scheduler = copy.deepcopy(pipe.scheduler)237 unmodified lines return video_path, video_path, current_seed
with gr.Blocks() as demo: gr.Markdown("# WAMU - Wan 2.2 I2V (14B)")with 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⚡️") 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 lines
if __name__ == "__main__": demo.queue().launch(mcp_server=True) demo.queue().launch( mcp_server=True, ssr_mode=False, show_error=True, )app.py+9-5