Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
|
|
5 |
from io import BytesIO
|
6 |
from diffusers import StableDiffusionImg2ImgPipeline
|
7 |
|
8 |
-
device = "
|
9 |
model_id_or_path = "runwayml/stable-diffusion-v1-5"
|
10 |
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model_id_or_path, torch_dtype=torch.float16,)
|
11 |
pipe = pipe.to(device)
|
|
|
5 |
from io import BytesIO
|
6 |
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.float16,)
|
11 |
pipe = pipe.to(device)
|