Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from diffusers import StableDiffusionPipeline
|
|
5 |
model_id = "CompVis/stable-diffusion-v1-4"
|
6 |
device = "cpu"
|
7 |
|
8 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.
|
9 |
pipe = pipe.to(device)
|
10 |
|
11 |
def greet(name):
|
|
|
5 |
model_id = "CompVis/stable-diffusion-v1-4"
|
6 |
device = "cpu"
|
7 |
|
8 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.bfloat16)
|
9 |
pipe = pipe.to(device)
|
10 |
|
11 |
def greet(name):
|