Spaces:
Sleeping
Sleeping
| title: PDF Chat App | |
| emoji: "π" | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: streamlit | |
| sdk_version: 1.45.1 | |
| app_file: app.py | |
| pinned: false | |
| # PDF Chat Application | |
| A PDF chat application that allows you to upload PDFs and ask questions about their content using natural language processing. Built with Streamlit, LangChain, and Hugging Face Transformers, this app runs entirely in your browser on Hugging Face Spaces. | |
| ## β¨ Features | |
| - π Upload and process PDF documents | |
| - π¬ Chat with your documents using natural language | |
| - π Local processing - no data leaves your machine | |
| - π€ Uses Hugging Face models for embeddings and question answering | |
| - π Built with Streamlit for a clean web interface | |
| ## π Prerequisites | |
| - A Hugging Face account (for Spaces deployment) | |
| - Git (for cloning the repository) | |
| - At least 4GB of free RAM (for running the models) | |
| ## π Getting Started | |
| 1. Clone the repository: | |
| ```bash | |
| git clone https://github.com/saketh-005/pdf-chat-app.git | |
| cd pdf-chat-app | |
| ``` | |
| 2. Install dependencies and run locally (optional): | |
| ```bash | |
| pip install -r requirements.txt | |
| streamlit run app.py | |
| ``` | |
| 3. Or deploy directly to Hugging Face Spaces by pushing this folder to your Space. | |
| ## π₯οΈ Usage | |
| 1. Click "Browse files" to upload a PDF document | |
| 2. Wait for the document to be processed (you'll see a success message) | |
| 3. Type your question in the chat input and press Enter | |
| 4. The app will analyze the document and provide an answer | |
| ## ποΈ Project Structure | |
| ``` | |
| . | |
| βββ app.py # Main Streamlit application | |
| βββ requirements.txt # Python dependencies | |
| βββ .gitignore # Git ignore file | |
| βββ README.md # This file | |
| ``` | |
| ## π€ Technologies Used | |
| - [Streamlit](https://streamlit.io/) - Web application framework | |
| - [LangChain](https://python.langchain.com/) - Framework for LLM applications | |
| - [Hugging Face Transformers](https://huggingface.co/transformers/) - NLP models | |
| - [Chroma DB](https://www.trychroma.com/) - Vector database for document storage | |
| ## π License | |
| This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. | |
| ## π Acknowledgments | |
| - [Hugging Face](https://huggingface.co/) for their amazing open-source models | |
| - [LangChain](https://python.langchain.com/) for simplifying LLM application development | |
| - [Streamlit](https://streamlit.io/) for the intuitive web interface | |