增加读latex文章的功能,添加测试样例

This commit is contained in:
Your Name
2023-03-24 14:56:57 +08:00
parent 3fb519bf83
commit ea4cd5a75a
25 changed files with 6113 additions and 5 deletions

View File

@@ -86,6 +86,7 @@ def predict(inputs, top_p, temperature, chatbot=[], history=[], system_prompt=''
chunk = next(stream_response)
# print(chunk.decode()[6:])
if is_head_of_the_stream:
# 数据流的第一帧不携带content
is_head_of_the_stream = False; continue
if chunk: