Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
a507a3b
1
Parent(s):
44b22a2
Update app.py (#6)
Browse files- Update app.py (89f837fae57643dbcea1ec82ddceebc0814c1a81)
Co-authored-by: Apolinário from multimodal AI art <[email protected]>
app.py
CHANGED
@@ -8,8 +8,8 @@ import spaces
|
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
dtype = torch.float16
|
10 |
|
11 |
-
repo = "stabilityai/stable-diffusion-3-medium"
|
12 |
-
pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16
|
13 |
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
MAX_IMAGE_SIZE = 1344
|
|
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
dtype = torch.float16
|
10 |
|
11 |
+
repo = "stabilityai/stable-diffusion-3-medium-diffusers"
|
12 |
+
pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to(device)
|
13 |
|
14 |
MAX_SEED = np.iinfo(np.int32).max
|
15 |
MAX_IMAGE_SIZE = 1344
|