justin-shopcapsule commited on
Commit
9b6af77
·
1 Parent(s): 8b26614

Update handler.py

Browse files

utf-8 for b64 strings

Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -672,7 +672,7 @@ class EndpointHandler():
672
  output_image = output_image.convert('RGB')
673
  output_image.save(buffered, format="png")
674
  img_str = base64.b64encode(buffered.getvalue())
675
- base64_strings.append(img_str)
676
 
677
  return base64_strings
678
 
 
672
  output_image = output_image.convert('RGB')
673
  output_image.save(buffered, format="png")
674
  img_str = base64.b64encode(buffered.getvalue())
675
+ base64_strings.append(img_str.decode('utf-8'))
676
 
677
  return base64_strings
678