fix(requirements): update requirements.txt
Browse files- handler.py +1 -2
- requirements.txt +1 -0
handler.py
CHANGED
@@ -18,7 +18,6 @@ class EndpointHandler():
|
|
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)
|
@@ -43,4 +42,4 @@ class EndpointHandler():
|
|
43 |
img_str = base64.b64encode(buffered.getvalue())
|
44 |
|
45 |
# postprocess the prediction
|
46 |
-
return {"image": img_str.decode()}
|
|
|
18 |
import torch
|
19 |
|
20 |
self.pipe = AutoPipelineForText2Image.from_pretrained("stabilityai/sdxl-turbo", torch_dtype=torch.float16, variant="fp16")
|
|
|
21 |
self.pipe.load_lora_weights("ppierzc/sd-icongenie-model-lora-sdxl", weight_name="pytorch_lora_weights.safetensors")
|
22 |
|
23 |
self.pipe = self.pipe.to(device)
|
|
|
42 |
img_str = base64.b64encode(buffered.getvalue())
|
43 |
|
44 |
# postprocess the prediction
|
45 |
+
return {"image": img_str.decode()}
|
requirements.txt
CHANGED
@@ -6,3 +6,4 @@ ftfy
|
|
6 |
tensorboard
|
7 |
Jinja2
|
8 |
peft==0.7.0
|
|
|
|
6 |
tensorboard
|
7 |
Jinja2
|
8 |
peft==0.7.0
|
9 |
+
diffusers
|