LDanielBlueway commited on
Commit
5dd94e4
·
verified ·
1 Parent(s): f77b2b9

Update handler.py

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