diff --git a/crazy_functions/批量总结PDF文档.py b/crazy_functions/批量总结PDF文档.py index 102bc9e..bf7fe6f 100644 --- a/crazy_functions/批量总结PDF文档.py +++ b/crazy_functions/批量总结PDF文档.py @@ -11,6 +11,7 @@ def 解析PDF(file_manifest, project_folder, top_p, temperature, chatbot, histor file_content = "" for page in doc: file_content += page.get_text() + file_content = file_content.encode('gbk', 'ignore').decode('gbk') print(file_content) prefix = "接下来请你逐文件分析下面的论文文件,概括其内容" if index==0 else ""