Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ main_pipe = StableDiffusionControlNetPipeline.from_pretrained(
|
|
31 |
BASE_MODEL,
|
32 |
controlnet=controlnet,
|
33 |
vae=vae,
|
34 |
-
safety_checker=
|
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 |
|