charleselena
commited on
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -67,7 +67,7 @@ class EndpointHandler():
|
|
67 |
controlnet=self.controlnet,
|
68 |
torch_dtype=dtype,
|
69 |
#safety_checker=None).to(device)
|
70 |
-
safety_checker = StableDiffusionSafetyChecker.from_pretrained('CompVis/stable-diffusion-safety-checker')
|
71 |
|
72 |
# Define Generator with seed
|
73 |
self.generator = torch.Generator(device="cpu").manual_seed(3)
|
|
|
67 |
controlnet=self.controlnet,
|
68 |
torch_dtype=dtype,
|
69 |
#safety_checker=None).to(device)
|
70 |
+
safety_checker = StableDiffusionSafetyChecker.from_pretrained('CompVis/stable-diffusion-safety-checker').to(device)
|
71 |
|
72 |
# Define Generator with seed
|
73 |
self.generator = torch.Generator(device="cpu").manual_seed(3)
|