Update handler.py
Browse files- 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]
|