3laa2 commited on
Commit
22c64f8
·
1 Parent(s): 56e53c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ from diffusers import StableDiffusionPipeline
6
 
7
  # "stabilityai/stable-diffusion-2-1-base"
8
  # "CompVis/stable-diffusion-v1-4"
9
- def create_model(loc = "stabilityai/stable-diffusion-2-1-base", mch = 'cuda'):
10
- pipe = StableDiffusionPipeline.from_pretrained(loc, torch_dtype=torch.float16)
11
  pipe = pipe.to(mch)
12
  return pipe
13
 
 
6
 
7
  # "stabilityai/stable-diffusion-2-1-base"
8
  # "CompVis/stable-diffusion-v1-4"
9
+ def create_model(loc = "stabilityai/stable-diffusion-2-1-base", mch = 'cpu'):
10
+ pipe = StableDiffusionPipeline.from_pretrained(loc)
11
  pipe = pipe.to(mch)
12
  return pipe
13