Oysiyl commited on
Commit
323c56a
1 Parent(s): 252672b

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -22,7 +22,7 @@ class EndpointHandler():
22
  self.stable_diffusion_id = "runwayml/stable-diffusion-v1-5"
23
  self.pipe = AutoPipelineForText2Image.from_pretrained(self.stable_diffusion_id,
24
  torch_dtype=dtype)
25
- self.pipe.load_lora_weights(".", weights="pytorch_lora_weights.bin")
26
  self.pipe.enable_xformers_memory_efficient_attention()
27
  self.pipe = self.pipe.to(device)
28
  self.seed = 42
 
22
  self.stable_diffusion_id = "runwayml/stable-diffusion-v1-5"
23
  self.pipe = AutoPipelineForText2Image.from_pretrained(self.stable_diffusion_id,
24
  torch_dtype=dtype)
25
+ self.pipe.load_lora_weights("pytorch_lora_weights.bin")
26
  self.pipe.enable_xformers_memory_efficient_attention()
27
  self.pipe = self.pipe.to(device)
28
  self.seed = 42