AndresR2909 commited on
Commit
3a84e14
1 Parent(s): 68dd930

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -31,7 +31,7 @@ class EndpointHandler():
31
  inputs = data.pop("inputs", data)
32
  prediction, prediction_prob = self.pipeline(inputs)
33
  # postprocess the prediction
34
- return {"prediction": prediction, "prediction_prob": prediction_prob}
35
 
36
 
37
  class TextClassificationPipeline:
 
31
  inputs = data.pop("inputs", data)
32
  prediction, prediction_prob = self.pipeline(inputs)
33
  # postprocess the prediction
34
+ return [{"prediction": prediction, "prediction_prob": prediction_prob}]
35
 
36
 
37
  class TextClassificationPipeline: