fashxp commited on
Commit
0e7cf0c
1 Parent(s): e7656af

update params

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -27,6 +27,7 @@ class EndpointHandler():
27
  parameters = data.pop("parameters", data)
28
  #parameters = inputs['parameters']
29
  candidate_labels = parameters['candidate_labels']
 
30
 
31
  # run prediction one image wit provided candiates
32
  prediction = self.pipeline(images=[image], candidate_labels=candidate_labels)
 
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=candidate_labels)