zemuwen commited on
Commit
dfa198a
·
verified ·
1 Parent(s): c74efee

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -15,5 +15,5 @@ class EndpointHandler:
15
  A :obj:`dict`: 返回生成的对话结果
16
  """
17
  inputs = data.get("inputs")
18
- conversation = self.pipeline(inputs)
19
  return {"generated_text": conversation}
 
15
  A :obj:`dict`: 返回生成的对话结果
16
  """
17
  inputs = data.get("inputs")
18
+ conversation = self.pipeline(inputs,max_length=4096)
19
  return {"generated_text": conversation}