Sebastian Semeniuc commited on
Commit ·
662553c
1
Parent(s): d4747d7
update: update return type of inference
Browse files- handler.py +3 -3
handler.py
CHANGED
|
@@ -152,7 +152,7 @@ class EndpointHandler():
|
|
| 152 |
image, width=1024, height=1024)
|
| 153 |
|
| 154 |
# run inference pipeline
|
| 155 |
-
|
| 156 |
prompt=prompt,
|
| 157 |
negative_prompt=negative_prompt,
|
| 158 |
image=control_image,
|
|
@@ -163,9 +163,9 @@ class EndpointHandler():
|
|
| 163 |
num_images_per_prompt=num_of_images,
|
| 164 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 165 |
generator=self.generator
|
| 166 |
-
)
|
| 167 |
|
| 168 |
-
return images
|
| 169 |
|
| 170 |
# helper to decode input image
|
| 171 |
def decode_base64_image(self, image_string):
|
|
|
|
| 152 |
image, width=1024, height=1024)
|
| 153 |
|
| 154 |
# run inference pipeline
|
| 155 |
+
out = self.pipe(
|
| 156 |
prompt=prompt,
|
| 157 |
negative_prompt=negative_prompt,
|
| 158 |
image=control_image,
|
|
|
|
| 163 |
num_images_per_prompt=num_of_images,
|
| 164 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 165 |
generator=self.generator
|
| 166 |
+
)
|
| 167 |
|
| 168 |
+
return out.images
|
| 169 |
|
| 170 |
# helper to decode input image
|
| 171 |
def decode_base64_image(self, image_string):
|