Upload handler.py
Browse files- handler.py +6 -6
handler.py
CHANGED
|
@@ -101,14 +101,14 @@ class EndpointHandler():
|
|
| 101 |
width=width,
|
| 102 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 103 |
generator=self.generator
|
| 104 |
-
).images
|
| 105 |
|
| 106 |
-
final_images = []
|
| 107 |
-
for generated_image in out_images:
|
| 108 |
-
|
| 109 |
|
| 110 |
-
|
| 111 |
-
return
|
| 112 |
|
| 113 |
# helper to decode input image
|
| 114 |
def decode_base64_image(self, image_string):
|
|
|
|
| 101 |
width=width,
|
| 102 |
controlnet_conditioning_scale=controlnet_conditioning_scale,
|
| 103 |
generator=self.generator
|
| 104 |
+
).images[0]
|
| 105 |
|
| 106 |
+
# final_images = []
|
| 107 |
+
# for generated_image in out_images:
|
| 108 |
+
# final_images.append(self.encode_image(generated_image))
|
| 109 |
|
| 110 |
+
|
| 111 |
+
return out_images
|
| 112 |
|
| 113 |
# helper to decode input image
|
| 114 |
def decode_base64_image(self, image_string):
|