lucafirefox commited on
Commit
d63134f
·
1 Parent(s): bce61ba

modified postprocess

Browse files
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -34,4 +34,6 @@ class EndpointHandler:
34
  prediction = self.pipeline(messages)
35
 
36
  # postprocess the prediction
37
- return prediction[0]["generated_text"]
 
 
 
34
  prediction = self.pipeline(messages)
35
 
36
  # postprocess the prediction
37
+ assistant_output = prediction[0]["generated_text"][-1]
38
+
39
+ return assistant_output["content"]