修复本地模型在Windows下的加载BUG

This commit is contained in:
qingxu fu
2023-11-11 21:11:55 +08:00
parent e4409b94d1
commit f75e39dc27
8 changed files with 25 additions and 25 deletions

View File

@@ -201,7 +201,7 @@ class LocalLLMHandle(Process):
if res.startswith(self.std_tag):
new_output = res[len(self.std_tag):]
std_out = std_out[:std_out_clip_len]
# print(new_output, end='')
print(new_output, end='')
std_out = new_output + std_out
yield self.std_tag + '\n```\n' + std_out + '\n```\n'
elif res == '[Finish]':