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