jonathanrstern commited on
Commit
86cb956
·
1 Parent(s): 415df0f

/repository/safetensors.safetensors

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -5,7 +5,7 @@ from diffusers import ControlNetModel, StableDiffusionControlNetPipeline, Stable
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
  self.pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
8
- self.pipeline.load_lora_weights(".", weight_name="/safetensors.safetensors")
9
 
10
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
11
  print('data:', data)
 
5
  class EndpointHandler():
6
  def __init__(self, path=""):
7
  self.pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0")
8
+ self.pipeline.load_lora_weights(".", weight_name="/repository/safetensors.safetensors")
9
 
10
  def __call__(self, data: Dict[str, Any]) -> List[Dict[str, Any]]:
11
  print('data:', data)