AP123 commited on
Commit
a2f5ebe
1 Parent(s): 884858d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ main_pipe = StableDiffusionControlNetPipeline.from_pretrained(
31
  BASE_MODEL,
32
  controlnet=controlnet,
33
  vae=vae,
34
- safety_checker=None,
35
  torch_dtype=torch.float16,
36
  ).to("cuda")
37
 
 
31
  BASE_MODEL,
32
  controlnet=controlnet,
33
  vae=vae,
34
+ safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker"),
35
  torch_dtype=torch.float16,
36
  ).to("cuda")
37