running space
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from PIL import Image
|
|
5 |
from io import BytesIO
|
6 |
from diffusers import StableDiffusionImg2ImgPipeline
|
7 |
|
8 |
-
device = "
|
9 |
-
model_id = "
|
10 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to(device)
|
11 |
|
12 |
pipe2 = StableDiffusionImg2ImgPipeline(**pipe.components).to(device)
|
|
|
5 |
from io import BytesIO
|
6 |
from diffusers import StableDiffusionImg2ImgPipeline
|
7 |
|
8 |
+
device = "cpu"
|
9 |
+
model_id = "pwc-india/tartan_weights"
|
10 |
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16).to(device)
|
11 |
|
12 |
pipe2 = StableDiffusionImg2ImgPipeline(**pipe.components).to(device)
|