emeersman commited on
Commit
24ba3d1
1 Parent(s): 643ef8a

Add second param to init function

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -11,7 +11,7 @@ if device.type != 'cuda':
11
  model_id = "stabilityai/stable-diffusion-2-1-base"
12
 
13
  class EndpointHandler():
14
- def __init__(self):
15
  # load the optimized model
16
  self.pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
17
  self.pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(self.pipe.scheduler.config)
 
11
  model_id = "stabilityai/stable-diffusion-2-1-base"
12
 
13
  class EndpointHandler():
14
+ def __init__(self, path=""):
15
  # load the optimized model
16
  self.pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
17
  self.pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(self.pipe.scheduler.config)