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

Cannot read an empty file #5

Closed inra0 closed 1 year ago

inra0 commented 1 year ago

PyPDF2.errors.EmptyFileError: Cannot read an empty file.

Right after I upload the pdf, and click Start Analyze. The feedback that I got at "Ask question about your PDF" is always: I'm sorry, I still don't have enough information to provide you with a specific answer. Can you please provide me with the title of the paper or any additional information so I can assist you better?

Alpaca4610 commented 1 year ago

https://github.com/talkingwallace/ChatGPT-Paper-Reader/issues/3

inra0 commented 1 year ago

ah, my bad...

shenbohe commented 1 year ago

python3.9/site-packages/PyPDF2/_reader.py", line 1455, in _basic_validation raise EmptyFileError("Cannot read an empty file") PyPDF2.errors.EmptyFileError: Cannot read an empty file

inra0 commented 1 year ago

pip install gradio==3.15.0