GUI for ChatGPT API and many LLMs. Supports agents, file-based QA, GPT finetuning and query with web search. All with a neat UI.
GNU General Public License v3.0
15.07k
stars
2.28k
forks
source link
[Bug]: 裁剪 PDF 文件首页(使用 pdfplumber 包获取的首页) 标题存在异常 #1115
Closed
kavons closed 1 month ago
这个bug是否已存在现有issue了?
错误表现
上传 PDF 文件时,优先使用 pdfplumber 解析文档,在调用 get_title_with_cropped_page 裁剪首页时,出现异常 exception![image](https://github.com/GaiZhenbiao/ChuanhuChatGPT/assets/70558061/e80c985b-45f1-44c4-8e3a-eeeaacf8e859)
原因是下面的代码传参数出现了错误:
user_info = [i["text"] for i in extract_words(first_page.within_bbox((x0,title_bottom,x1,top)))]
复现操作
上传PDF
错误日志
No response
运行环境
帮助解决
补充说明
No response