amazonaws-la commited on
Commit
d3626d6
·
verified ·
1 Parent(s): 22acacf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def generate(
64
  if torch.cuda.is_available():
65
 
66
  if not use_vae:
67
- pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16, safety_checker=True)
68
 
69
  if use_vae:
70
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
 
64
  if torch.cuda.is_available():
65
 
66
  if not use_vae:
67
+ pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16, safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker"))
68
 
69
  if use_vae:
70
  vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)