blancsw commited on
Commit
2c17eab
1 Parent(s): df07b9f

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -33,4 +33,4 @@ class EndpointHandler:
33
  else:
34
  prediction = self.pipline(inputs)
35
  # postprocess the prediction
36
- return prediction
 
33
  else:
34
  prediction = self.pipline(inputs)
35
  # postprocess the prediction
36
+ return [{"label": p["label"]} for p in prediction]