Update handler.py
Browse files- 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.
|
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(inputs)[0]
|
25 |
|
26 |
return [{"label": self.id2label[i], "score": score.item()} for i, score in enumerate(scores)]
|