Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,9 @@ from diffusers import DiffusionPipeline
|
|
| 4 |
import imageio
|
| 5 |
import tempfile
|
| 6 |
|
| 7 |
-
# Load
|
| 8 |
pipe = DiffusionPipeline.from_pretrained(
|
| 9 |
-
"Wan-AI/Wan2.2-
|
| 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 |
-
|
|
|
|
|
|
| 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()
|