oscarfu0501 commited on
Commit
20e05e3
·
verified ·
1 Parent(s): 0eb3ca6

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -52,7 +52,7 @@ class EndpointHandler:
52
  clothes = img[y1:y2, x1:x2]
53
  retval, buffer = cv2.imencode(".jpg", clothes)
54
  # create base 64 object
55
- jpg_as_text = base64.b64encode(buffer) # Decode bytes to string
56
  ###########################################################################
57
  return jpg_as_text
58
 
 
52
  clothes = img[y1:y2, x1:x2]
53
  retval, buffer = cv2.imencode(".jpg", clothes)
54
  # create base 64 object
55
+ jpg_as_text = base64.b64encode(buffer).decode("utf-8") # Decode bytes to string
56
  ###########################################################################
57
  return jpg_as_text
58