Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,13 @@ import torch
|
|
3 |
from diffusers import DiffusionPipeline
|
4 |
|
5 |
# Load the WAN 2.1 T2V Model
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
def generate_image(prompt):
|
10 |
"""Generates an image from text prompt using WAN 2.1"""
|
|
|
3 |
from diffusers import DiffusionPipeline
|
4 |
|
5 |
# Load the WAN 2.1 T2V Model
|
6 |
+
|
7 |
+
from diffusers import DiffusionPipeline
|
8 |
+
|
9 |
+
pipe = DiffusionPipeline.from_pretrained("StevenZhang/Wan2.1-T2V-1.3B-Diff")
|
10 |
+
|
11 |
+
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
12 |
+
image = pipe(prompt).images[0]
|
13 |
|
14 |
def generate_image(prompt):
|
15 |
"""Generates an image from text prompt using WAN 2.1"""
|