pdfminer整合到一个文件中

This commit is contained in:
Your Name
2023-03-31 21:03:12 +08:00
parent a71edeea95
commit 167be41621
6 changed files with 171 additions and 82 deletions

View File

@@ -11,7 +11,6 @@ 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 ""