Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from diffusers import StableDiffusionImg2ImgPipeline
|
|
7 |
|
8 |
device = "cpu"
|
9 |
model_id_or_path = "runwayml/stable-diffusion-v1-5"
|
10 |
-
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.
|
11 |
pipe = pipe.to(device)
|
12 |
pipe.enable_attention_slicing()
|
13 |
|
|
|
7 |
|
8 |
device = "cpu"
|
9 |
model_id_or_path = "runwayml/stable-diffusion-v1-5"
|
10 |
+
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.get_default_dtype(),)
|
11 |
pipe = pipe.to(device)
|
12 |
pipe.enable_attention_slicing()
|
13 |
|