talkingwallace / ChatGPT-Paper-Reader

This repo offers a simple interface that helps you to read&summerize research papers in pdf format. You can ask some questions after reading. This interface is developed based on openai API and using GPT-3.5-turbo model.
730 stars 109 forks source link

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

Open wccccp opened 1 year ago

wccccp commented 1 year ago

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

shenbohe commented 1 year ago

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

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,基本显示文件为空