Spaces:
Build error
Build error
Zhenhong
commited on
Commit
·
bb9a6c3
1
Parent(s):
44d5f8c
Add application file
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from diffusers import StableDiffusionPipeline
|
|
3 |
import torch
|
4 |
|
5 |
model_id = "runwayml/stable-diffusion-v1-5"
|
6 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.
|
7 |
# pipe = pipe.to("cuda")
|
8 |
|
9 |
prompt = "a photo of an astronaut riding a horse on mars"
|
|
|
3 |
import torch
|
4 |
|
5 |
model_id = "runwayml/stable-diffusion-v1-5"
|
6 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
|
7 |
# pipe = pipe.to("cuda")
|
8 |
|
9 |
prompt = "a photo of an astronaut riding a horse on mars"
|