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.98k stars 837 forks source link

lc-serve deploy local api is not working #110

Open Dregn opened 1 year ago

Dregn commented 1 year ago

I have not used docker image.. followed steps in docker file. I was able to run app.py but above command has is showing below error

c-serve deploy local api ⠋ Waiting gateway... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0/1 0:00:33ERROR gateway/rep-0@3784 AttributeError('pydantic_parent_namespace') during 'GatewayRuntime' [10/26/23 17:44:12] initialization

Dregn commented 1 year ago

I am using windows and python 3.11

asrouji commented 1 year ago

+1, same issue here

bhaskatripathi commented 1 year ago

Please use the original code. It works. LC-serve contributors are not active. So you will need to take the original code directly and use it. It works perfectly: https://huggingface.co/spaces/bhaskartripathi/pdfGPT_Turbo/blob/main/app.py