DmitrMakeev commited on
Commit
70e2092
1 Parent(s): e51fa23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from huggingface_hub import login
8
  #import os
9
  #login(token=os.environ.get('HF_KEY'))
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
- pipe = DiffusionPipeline.from_pretrained("dreamlike-art/dreamlike-photoreal-2.0", torch_dtype=torch.float16) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0")
12
  pipe = pipe.to(device)
13
  def resize(height, width, img):
14
  img = Image.open(img)
 
8
  #import os
9
  #login(token=os.environ.get('HF_KEY'))
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
+ pipe = DiffusionPipeline.from_pretrained("segmind/SSD-1B", torch_dtype=torch.float16) if torch.cuda.is_available() else DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0")
12
  pipe = pipe.to(device)
13
  def resize(height, width, img):
14
  img = Image.open(img)