Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import torch
|
|
6 |
pipe = DiffusionPipeline.from_pretrained("Fucius/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16")
|
7 |
pipe.to('cuda')
|
8 |
|
|
|
9 |
@spaces.GPU
|
10 |
def generate(prompt):
|
11 |
return pipe(prompt).images
|
|
|
6 |
pipe = DiffusionPipeline.from_pretrained("Fucius/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16")
|
7 |
pipe.to('cuda')
|
8 |
|
9 |
+
|
10 |
@spaces.GPU
|
11 |
def generate(prompt):
|
12 |
return pipe(prompt).images
|