在本地无法上传pdf 也没有报错日志
wccccp opened this issue · 1 comments
wccccp commented
shenbohe commented
我增加文档上传检查。 发现确实无法上传文档。 提示都是空文件
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,基本显示文件为空