talkingwallace/ChatGPT-Paper-Reader

在本地无法上传pdf 也没有报错日志

wccccp opened this issue · 1 comments

一直是上传状态 ,为什么不能上传,无报错日志
image
image

我增加文档上传检查。 发现确实无法上传文档。 提示都是空文件

def analyse(self, api_key, uploaded_file):
self.session = PaperReader(api_key)
file_content = uploaded_file.read()
if not file_content:
return "The input file is empty. Please upload a valid PDF file."
self.paper = Paper(BytesIO(file_content))
return self.session.summarize(self.paper)

我点击analyse,基本显示文件为空