This commit is contained in:
zjt 2023-12-18 10:06:41 +08:00
parent 2aca3657ad
commit 1b4cec53f5

View File

@ -51,6 +51,7 @@ def index():
np.save("array.npy", image_embedding)
response = Response(byte_io, mimetype="application/octet-stream")
response.headers["Content-Length"] = 4194432
response.headers["Access-Control-Allow-Origin"] = "*"
return response
else:
return 'Content-Type not supported!'