生成文本报告

This commit is contained in:
Your Name
2023-03-24 15:42:09 +08:00
parent 93c13aa97a
commit 32f36a609e
4 changed files with 23 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
from predict import predict_no_ui
from toolbox import CatchException, report_execption
from toolbox import CatchException, report_execption, write_results_to_file
fast_debug = False
@@ -56,7 +56,9 @@ def 解析Paper(file_manifest, project_folder, top_p, temperature, chatbot, hist
chatbot[-1] = (i_say, gpt_say)
history.append(i_say); history.append(gpt_say)
yield chatbot, history, msg
res = write_results_to_file(history)
chatbot.append(("完成了吗?", res))
yield chatbot, history, msg