Fluf22 commited on
Commit
c6868f7
·
verified ·
1 Parent(s): 64846eb

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -0
handler.py CHANGED
@@ -13,6 +13,9 @@ class EndpointHandler():
13
  inputs = data.pop("inputs", {})
14
  parameters = data.pop("parameters", {})
15
  candidate_labels = parameters.pop("candidate_labels", [])
 
 
 
16
 
17
  # decode base64 image to PIL
18
  image = Image.open(BytesIO(base64.b64decode(inputs)))
 
13
  inputs = data.pop("inputs", {})
14
  parameters = data.pop("parameters", {})
15
  candidate_labels = parameters.pop("candidate_labels", [])
16
+ print("input: ", inputs)
17
+ print("input: ", parameters)
18
+ print("input: ", candidate_labels)
19
 
20
  # decode base64 image to PIL
21
  image = Image.open(BytesIO(base64.b64decode(inputs)))