Ujwaltheja commited on
Commit
84485ed
·
verified ·
1 Parent(s): 2847797

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -4,9 +4,9 @@ from diffusers import DiffusionPipeline
4
  import imageio
5
  import tempfile
6
 
7
- # Load model (first run will download weights)
8
  pipe = DiffusionPipeline.from_pretrained(
9
- "Wan-AI/Wan2.2-T2V-A14B",
10
  torch_dtype=torch.float16
11
  ).to("cuda")
12
 
@@ -22,4 +22,5 @@ demo = gr.Interface(
22
  outputs=gr.Video(label="Generated Video")
23
  )
24
 
25
- demo.launch()
 
 
4
  import imageio
5
  import tempfile
6
 
7
+ # Load the lighter 5B model
8
  pipe = DiffusionPipeline.from_pretrained(
9
+ "Wan-AI/Wan2.2-TI2V-5B-Diffusers",
10
  torch_dtype=torch.float16
11
  ).to("cuda")
12
 
 
22
  outputs=gr.Video(label="Generated Video")
23
  )
24
 
25
+ if __name__ == "__main__":
26
+ demo.launch()