upro commited on
Commit
6a245ac
1 Parent(s): 31dd331

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -15,7 +15,7 @@ if device.type != 'cuda':
15
  class EndpointHandler():
16
  def __init__(self, path=""):
17
  # load the optimized model
18
- self.pipe = StableDiffusionPipeline.from_pretrained(path, torch_dtype=torch.float16)
19
  self.pipe = self.pipe.to(device)
20
 
21
 
 
15
  class EndpointHandler():
16
  def __init__(self, path=""):
17
  # load the optimized model
18
+ self.pipe = StableDiffusionPipeline.from_pretrained(path, torch_dtype=torch.float16, safety_checker = None, requires_safety_checker = False)
19
  self.pipe = self.pipe.to(device)
20
 
21