fix(handler)
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -18,8 +18,8 @@ class EndpointHandler():
|
|
18 |
import torch
|
19 |
|
20 |
self.pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
|
21 |
-
print(path)
|
22 |
-
self.pipe.load_lora_weights(
|
23 |
|
24 |
self.pipe = self.pipe.to(device)
|
25 |
|
|
|
18 |
import torch
|
19 |
|
20 |
self.pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
|
21 |
+
print("path", path)
|
22 |
+
self.pipe.load_lora_weights("ppierzc/sd-icongenie-model-lora-sdxl", weight_name="pytorch_lora_weights.safetensors")
|
23 |
|
24 |
self.pipe = self.pipe.to(device)
|
25 |
|