charleselena commited on
Commit
cc2c67b
·
verified ·
1 Parent(s): b891004
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -88,7 +88,9 @@ class EndpointHandler():
88
  self.pipe = StableDiffusionControlNetPipeline.from_pretrained(self.stable_diffusion_id,
89
  controlnet=self.controlnet,
90
  torch_dtype=dtype,
91
- safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker")).to(device)
 
 
92
 
93
 
94
  # Define Generator with seed
 
88
  self.pipe = StableDiffusionControlNetPipeline.from_pretrained(self.stable_diffusion_id,
89
  controlnet=self.controlnet,
90
  torch_dtype=dtype,
91
+ safety_checker=Node).to(device)
92
+
93
+ #StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker")
94
 
95
 
96
  # Define Generator with seed