Spaces:
Running
on
Zero
Running
on
Zero
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ import spaces
|
|
8 |
|
9 |
repo = "stabilityai/stable-diffusion-3-medium-diffusers"
|
10 |
if torch.cuda.is_available():
|
11 |
-
pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to(
|
12 |
else:
|
13 |
pipe = StableDiffusion3Pipeline.from_pretrained(repo)
|
14 |
|
|
|
8 |
|
9 |
repo = "stabilityai/stable-diffusion-3-medium-diffusers"
|
10 |
if torch.cuda.is_available():
|
11 |
+
pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to("cuda")
|
12 |
else:
|
13 |
pipe = StableDiffusion3Pipeline.from_pretrained(repo)
|
14 |
|