Zhibinhong commited on
Commit
13b296f
·
1 Parent(s): 890c749

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -20,4 +20,4 @@ class EndpointHandler():
20
  print(type(image))
21
  img_data = image.tobytes()
22
  img_base64 = base64.b64encode(img_data).decode('utf-8')
23
- return json.dumps({'image':img_base64})
 
20
  print(type(image))
21
  img_data = image.tobytes()
22
  img_base64 = base64.b64encode(img_data).decode('utf-8')
23
+ return {'image':img_base64}