Spaces:
Running
on
Zero
Running
on
Zero
nroggendorff
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,7 @@ import spaces
|
|
4 |
import torch
|
5 |
from diffusers import StableDiffusionXLPipeline
|
6 |
|
7 |
-
pipeline = StableDiffusionXLPipeline.from_pretrained(
|
8 |
-
"stabilityai/stable-diffusion-xl-base-1.0"
|
9 |
-
).to("cuda")
|
10 |
|
11 |
@spaces.GPU
|
12 |
def generate(prompt, negative_prompt, width, height, sample_steps):
|
|
|
4 |
import torch
|
5 |
from diffusers import StableDiffusionXLPipeline
|
6 |
|
7 |
+
pipeline = StableDiffusionXLPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0").to("cuda")
|
|
|
|
|
8 |
|
9 |
@spaces.GPU
|
10 |
def generate(prompt, negative_prompt, width, height, sample_steps):
|