Skip to content

Commit

Permalink
Merge pull request #927 from QuantumRoseinAmethystVase/master
Browse files Browse the repository at this point in the history
Update 批量总结PDF文档.py
  • Loading branch information
binary-husky committed Jul 4, 2023
2 parents 6e6ea69 + 16c17eb commit e9b06d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/批量总结PDF文档.py
Expand Up @@ -71,7 +71,7 @@ def 解析PDF(file_manifest, project_folder, llm_kwargs, plugin_kwargs, chatbot,

prefix = "接下来请你逐文件分析下面的论文文件,概括其内容" if index==0 else ""
i_say = prefix + f'请对下面的文章片段用中文做一个概述,文件名是{os.path.relpath(fp, project_folder)},文章内容是 ```{file_content}```'
i_say_show_user = prefix + f'[{index}/{len(file_manifest)}] 请对下面的文章片段做一个概述: {os.path.abspath(fp)}'
i_say_show_user = prefix + f'[{index + 1}/{len(file_manifest)}] 请对下面的文章片段做一个概述: {os.path.abspath(fp)}'
chatbot.append((i_say_show_user, "[Local Message] waiting gpt response."))
yield from update_ui(chatbot=chatbot, history=history) # 刷新界面

Expand Down

0 comments on commit e9b06d7

Please sign in to comment.