Thomasboosinger
commited on
Commit
•
d602a6c
1
Parent(s):
9ba309e
Update handler.py
Browse files- 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["
|
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
|