Spaces:
Sleeping
Sleeping
File size: 2,436 Bytes
82e2888 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | ---
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
|