Thomasboosinger commited on
Commit
d602a6c
1 Parent(s): 9ba309e

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -22,5 +22,5 @@ class EndpointHandler():
22
  image = Image.open(BytesIO(base64.b64decode(inputs['image'])))
23
 
24
  # run prediction one image wit provided candiates
25
- detector = self.pipeline(images=[image], candidate_labels=inputs["candiates"])
26
  return detector
 
22
  image = Image.open(BytesIO(base64.b64decode(inputs['image'])))
23
 
24
  # run prediction one image wit provided candiates
25
+ detector = self.pipeline(images=[image], candidate_labels=inputs["candidate_labels"])
26
  return detector