Update handler.py
Browse files72 unmodified lines737475767677787972 unmodified lines retval , buffer = cv2.imencode('.jpg', clothes) cv2.imwrite("result.jpg", clothes) # create base 64 object jpg_as_text = base64.b64encode(buffer).decode("utf-8") # Decode bytes to string") jpg_as_text = base64.b64encode(buffer) # Decode bytes to string") # base64_encoded = base64.b64encode(image_bytes).decode("utf-8") # Get the image formathandler.py+1-1