Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ import numpy as np
|
|
3 |
import random
|
4 |
import spaces
|
5 |
import torch
|
6 |
-
from diffusers import
|
7 |
|
8 |
import os
|
9 |
import requests
|
@@ -16,7 +16,7 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
16 |
|
17 |
|
18 |
# Load the model pipeline
|
19 |
-
pipe =
|
20 |
|
21 |
torch.cuda.empty_cache()
|
22 |
|
|
|
3 |
import random
|
4 |
import spaces
|
5 |
import torch
|
6 |
+
from diffusers import QwenImagePipeline
|
7 |
|
8 |
import os
|
9 |
import requests
|
|
|
16 |
|
17 |
|
18 |
# Load the model pipeline
|
19 |
+
pipe = QwenImagePipeline.from_pretrained("Qwen/Qwen-Image", torch_dtype=dtype).to(device)
|
20 |
|
21 |
torch.cuda.empty_cache()
|
22 |
|