Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import random
|
|
| 4 |
from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler
|
| 5 |
import torch
|
| 6 |
|
| 7 |
-
# ββ Device & model setup ββββ
|
| 8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 9 |
model_repo_id = "Tongyi-MAI/Z-Image-Turbo"
|
| 10 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|
|
|
|
| 4 |
from diffusers import DiffusionPipeline, EulerAncestralDiscreteScheduler
|
| 5 |
import torch
|
| 6 |
|
| 7 |
+
# ββ Device & model setup ββββ
|
| 8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 9 |
model_repo_id = "Tongyi-MAI/Z-Image-Turbo"
|
| 10 |
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
|