rikdas commited on
Commit
4c99458
1 Parent(s): 5b49f7f

running space

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ from PIL import Image
5
  from io import BytesIO
6
  from diffusers import StableDiffusionImg2ImgPipeline
7
 
8
- device = "cuda"
9
- model_id = "krishi/tartan2"
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)