um235 commited on
Commit
b40ecd3
·
verified ·
1 Parent(s): 348048e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def infer(
42
  generator = torch.Generator().manual_seed(seed)
43
 
44
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
45
- if (model_repo_id=="stable-diffusion-v1-5/stable-diffusion-v1-5"): pipe.unet = PeftModel.from_pretrained(pipe.unet,"um235/cartoon_cat_stickers")
46
  pipe = pipe.to(device)
47
 
48
  image = pipe(
 
42
  generator = torch.Generator().manual_seed(seed)
43
 
44
  pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch_dtype)
45
+ #if (model_repo_id=="stable-diffusion-v1-5/stable-diffusion-v1-5"): pipe.unet = PeftModel.from_pretrained(pipe.unet,"um235/cartoon_cat_stickers")
46
  pipe = pipe.to(device)
47
 
48
  image = pipe(