Mirza Učanbarlić commited on
Commit
5373874
·
1 Parent(s): f0884e6

fix encoding

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -36,4 +36,4 @@ class EndpointHandler():
36
  img_str = base64.b64encode(buffered.getvalue())
37
 
38
  # postprocess the prediction
39
- return {"image": img_str.decode()}
 
36
  img_str = base64.b64encode(buffered.getvalue())
37
 
38
  # postprocess the prediction
39
+ return {"image": img_str}