Update app.py
Browse files
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 = '
|
10 |
-
pipe = StableDiffusionPipeline.from_pretrained(loc
|
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 |
|