fvonhoven commited on
Commit
ef081d8
1 Parent(s): b047a36

Revert output count

Browse files
Files changed (1) hide show
  1. handler.py +1 -2
handler.py CHANGED
@@ -99,7 +99,6 @@ class EndpointHandler():
99
  height = data.pop("height", None)
100
  width = data.pop("width", None)
101
  controlnet_conditioning_scale = data.pop("controlnet_conditioning_scale", 1.0)
102
- output_count = data.pop("output_count", None)
103
 
104
  # process image
105
  image = self.decode_base64_image(image)
@@ -121,7 +120,7 @@ class EndpointHandler():
121
 
122
 
123
  # return first generate PIL image
124
- return out.images[0, output_count]
125
 
126
  # helper to decode input image
127
  def decode_base64_image(self, image_string):
 
99
  height = data.pop("height", None)
100
  width = data.pop("width", None)
101
  controlnet_conditioning_scale = data.pop("controlnet_conditioning_scale", 1.0)
 
102
 
103
  # process image
104
  image = self.decode_base64_image(image)
 
120
 
121
 
122
  # return first generate PIL image
123
+ return out.images[0]
124
 
125
  # helper to decode input image
126
  def decode_base64_image(self, image_string):