oscarfu0501 commited on
Commit
4f802fd
1 Parent(s): f09b10d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -73,7 +73,7 @@ class EndpointHandler:
73
  retval , buffer = cv2.imencode('.jpg', clothes)
74
  cv2.imwrite("result.jpg", clothes)
75
  # create base 64 object
76
- jpg_as_text = base64.b64encode(buffer).decode("utf-8") # Decode bytes to string")
77
  # base64_encoded = base64.b64encode(image_bytes).decode("utf-8")
78
 
79
  # Get the image format
 
73
  retval , buffer = cv2.imencode('.jpg', clothes)
74
  cv2.imwrite("result.jpg", clothes)
75
  # create base 64 object
76
+ jpg_as_text = base64.b64encode(buffer) # Decode bytes to string")
77
  # base64_encoded = base64.b64encode(image_bytes).decode("utf-8")
78
 
79
  # Get the image format