Mantas commited on
Commit
a00e348
1 Parent(s): d386fa3

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -21,6 +21,6 @@ class EndpointHandler:
21
  inputs = [inputs]
22
 
23
  # run normal prediction
24
- scores = self.model.predict(inputs)[0]
25
 
26
  return [{"label": self.id2label[i], "score": score.item()} for i, score in enumerate(scores)]
 
21
  inputs = [inputs]
22
 
23
  # run normal prediction
24
+ scores = self.model.predict_proba(inputs)[0]
25
 
26
  return [{"label": self.id2label[i], "score": score.item()} for i, score in enumerate(scores)]