update params
Browse files- handler.py +3 -1
handler.py
CHANGED
@@ -27,8 +27,10 @@ class EndpointHandler():
|
|
27 |
parameters = data.pop("parameters", data)
|
28 |
#parameters = inputs['parameters']
|
29 |
candidate_labels = parameters['candidate_labels']
|
|
|
|
|
30 |
candidate_labels_array = list(map(str.strip, candidate_labels.split(',')))
|
31 |
|
32 |
# run prediction one image wit provided candiates
|
33 |
-
prediction = self.pipeline(images=[image], candidate_labels=
|
34 |
return prediction[0]
|
|
|
27 |
parameters = data.pop("parameters", data)
|
28 |
#parameters = inputs['parameters']
|
29 |
candidate_labels = parameters['candidate_labels']
|
30 |
+
print(candidate_labels)
|
31 |
+
|
32 |
candidate_labels_array = list(map(str.strip, candidate_labels.split(',')))
|
33 |
|
34 |
# run prediction one image wit provided candiates
|
35 |
+
prediction = self.pipeline(images=[image], candidate_labels=candidate_labels_array)
|
36 |
return prediction[0]
|