Update handler.py
Browse files- 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)
|
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
|