Commit
·
d63134f
1
Parent(s):
bce61ba
modified postprocess
Browse files- handler.py +3 -1
handler.py
CHANGED
|
@@ -34,4 +34,6 @@ class EndpointHandler:
|
|
| 34 |
prediction = self.pipeline(messages)
|
| 35 |
|
| 36 |
# postprocess the prediction
|
| 37 |
-
|
|
|
|
|
|
|
|
|
| 34 |
prediction = self.pipeline(messages)
|
| 35 |
|
| 36 |
# postprocess the prediction
|
| 37 |
+
assistant_output = prediction[0]["generated_text"][-1]
|
| 38 |
+
|
| 39 |
+
return assistant_output["content"]
|