OrderAndChaos commited on
Commit
76407c5
1 Parent(s): ebfeb0b

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -4
handler.py CHANGED
@@ -51,10 +51,7 @@ class EndpointHandler:
51
  controlnet_conditioning_scale=controlnet_conditioning_scale,
52
  ).images[0]
53
 
54
- # Save the output image to bytes
55
- output_bytes = save_image_to_bytes(output_image)
56
-
57
- return output_bytes
58
 
59
  def make_inpaint_condition(self, image, mask):
60
  image = np.array(image.convert("RGB")).astype(np.float32) / 255.0
 
51
  controlnet_conditioning_scale=controlnet_conditioning_scale,
52
  ).images[0]
53
 
54
+ return output_image
 
 
 
55
 
56
  def make_inpaint_condition(self, image, mask):
57
  image = np.array(image.convert("RGB")).astype(np.float32) / 255.0