https://github.com/saeidsaadatigero/ChatBot-Flask
AI Question Answering from PDF
https://github.com/saeidsaadatigero/ChatBot-Flask
bootstrap5 cors fitz flask html-css-javascript huggingface pyngrok python python3 transformers ubuntu
Last synced: 10 months ago
JSON representation
AI Question Answering from PDF
- Host: GitHub
- URL: https://github.com/saeidsaadatigero/ChatBot-Flask
- Owner: saeidsaadatigero
- Created: 2024-12-11T17:10:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-11T17:49:27.000Z (over 1 year ago)
- Last Synced: 2024-12-11T18:24:22.621Z (over 1 year ago)
- Topics: bootstrap5, cors, fitz, flask, html-css-javascript, huggingface, pyngrok, python, python3, transformers, ubuntu
- Language: Jupyter Notebook
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AI Question Answering from PDF ππ€

This project allows you to upload a PDF and ask a question about its content. The AI will process the uploaded file and provide an answer to your question using Natural Language Processing (NLP).
## Features π
- π Upload PDF files.
- β Ask questions based on the content of the uploaded PDF.
- π€ AI-powered question answering.
- π Built with modern web technologies for a smooth user experience.
## Technologies Used π οΈ
-  Python 3.9
-  Flask
-  Bootstrap 5
-  Font Awesome Icons
-  JavaScript ES6
-  ngrok for tunneling (used for demo purposes)
## How to Use π§βπ»
1. Clone the repository:
```bash
git clone https://github.com/saeidsaadatigero/ai-question-answering-pdf.git
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Run the Flask server:
```bash
python app.py
```
4. Open the provided URL in your browser and upload a PDF to start asking questions!
## Project Demo π₯
Hereβs a demo of how the application looks:

## How It Works βοΈ
1. **Upload PDF**: The user uploads a PDF file containing the document they want to ask questions about.
2. **Ask a Question**: The user enters a question related to the content of the PDF.
3. **AI Processing**: The backend processes the file and the question using NLP techniques.
4. **Answer**: The AI generates an answer based on the context extracted from the PDF and returns it to the user.
## Features π
- **User-Friendly Interface**: Built using Bootstrap for responsive and clean design.
- **Fast Processing**: Quickly processes PDFs and answers questions.
- **Icons & Aesthetics**: Enhanced UI with Font Awesome icons for a modern look.
## Installation Instructions π οΈ
1. Clone this repository:
```bash
git clone https://github.com/saeidsaadatigero/ai-question-answering-pdf.git
```
2. Install Python dependencies:
```bash
pip install -r requirements.txt
```
3. Run the app:
```bash
python app.py
```
Open your browser and go to `http://localhost:5000`.
## Technologies Used π§βπ»
- **Frontend**:
- HTML, CSS, JavaScript
- Bootstrap 5
- Font Awesome Icons
- **Backend**:
- Python 3.x
- Flask
- Natural Language Processing (NLP)
- **Deployment**:
- ngrok (for tunneling in demo mode)
## Contributing π€
1. Fork this repository.
2. Create your branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -am 'Add feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Create a new Pull Request.
## License π
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
---
## Contact π¬
Feel free to reach out if you have any questions or suggestions!
- Email: [saeidsaadatigero@gmail.com](mailto:saeidsaadatigero@gmail.com)
- GitHub: [@saeidsaadatigero](https://github.com/saeidsaadatigero)
- LinkedIn: [@saeidsaadatigero](https://www.linkedin.com/in/saeidsaadatigero)
```