cros
This commit is contained in:
@@ -51,6 +51,7 @@ def index():
|
|||||||
np.save("array.npy", image_embedding)
|
np.save("array.npy", image_embedding)
|
||||||
response = Response(byte_io, mimetype="application/octet-stream")
|
response = Response(byte_io, mimetype="application/octet-stream")
|
||||||
response.headers["Content-Length"] = 4194432
|
response.headers["Content-Length"] = 4194432
|
||||||
|
response.headers["Access-Control-Allow-Origin"] = "*"
|
||||||
return response
|
return response
|
||||||
else:
|
else:
|
||||||
return 'Content-Type not supported!'
|
return 'Content-Type not supported!'
|
||||||
|
|||||||
Reference in New Issue
Block a user