This is a PDF chat app which you can run on your local machine. The app allows users to upload any PDF and ask questions. The app is built using Langchain, Streamlit and Hugging Face Q&A LLM.
- Upload any PDF file
- Ask questions about the PDF
- Clone the repository:
git clone https://github.com/sudan94/chat-pdf-hugginface.git
- Install the required packages:
pip install streamlit langchain huggingface-hub pdfminer.six spacy sentence-transformers faiss-cpu
spacy download en_core_web_sm
-
Add the huggingface token:
- rename .streamlit/secrets.local.toml to .streamlit/secrets.toml
- paste the token inside the double quotes #NOTE: The quotes are necessary
-
Run the app:
streamlit run app.py
- Upload a PDF file and ask questions about it.