anujg1508 commited on
Commit
5047451
·
1 Parent(s): 8e09c90

disable safety_checker

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -13,7 +13,7 @@ if device.type != "cuda":
13
 
14
  class EndpointHandler():
15
  def __init__(self, path="") :
16
- self.pipe = StableDiffusionAdapterPipeline.from_pretrained(path, feature_extractor=None, adapter=None,torch_dtype=torch.float16)
17
  self.pipe = self.pipe.to(device)
18
 
19
 
 
13
 
14
  class EndpointHandler():
15
  def __init__(self, path="") :
16
+ self.pipe = StableDiffusionAdapterPipeline.from_pretrained(path, feature_extractor=None, adapter=None, safety_checker=None, torch_dtype=torch.float16)
17
  self.pipe = self.pipe.to(device)
18
 
19