new server frame

This commit is contained in:
zjt 2023-10-22 10:59:55 +08:00
parent 1e67935333
commit 040aba1654

View File

@ -38,6 +38,7 @@ def index():
if (content_type == 'application/json'):
print('start calculate embedding')
base64data = request.get_json()['imgurl']
print(base64data)
image = base64_to_image(base64data)
predictor.set_image(image)
image_embedding = predictor.get_image_embedding().cpu().numpy()