philschmid HF staff commited on
Commit
b4cf3d3
1 Parent(s): 8ccead5

Update handler.py

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