Update handler.py
Browse files- 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(
|
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]
|