bhaskatripathi / pdfGPT

PDF GPT allows you to chat with the contents of your PDF file by using GPT capabilities. The most effective open source solution to turn your pdf files in a chatbot!
https://huggingface.co/spaces/bhaskartripathi/pdfGPT_Turbo
MIT License
6.93k stars 833 forks source link

Update api.py #81

Closed MTrevoux closed 1 year ago

MTrevoux commented 1 year ago

Hi,

When the generate_text() is called by the API, there is no error catch in case of failure. This change allows to see the error message on the answer cell of the web app instead of a blank.

Useful when openai account is exceeding the quota or other types of error.

MA