Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
| 16 |
|
| 17 |
|
| 18 |
# Load the model pipeline
|
| 19 |
-
pipe = ZImagePipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo", torch_dtype=dtype
|
| 20 |
|
| 21 |
torch.cuda.empty_cache()
|
| 22 |
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
# Load the model pipeline
|
| 19 |
+
pipe = ZImagePipeline.from_pretrained("Tongyi-MAI/Z-Image-Turbo", torch_dtype=dtype).to(device)
|
| 20 |
|
| 21 |
torch.cuda.empty_cache()
|
| 22 |
|