Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saeidsaadatigero/ai-app

AI Question Answering from PDF
https://github.com/saeidsaadatigero/ai-app

bootstrap5 cors fitz flask html-css-javascript huggingface pyngrok python python3 transformers ubuntu

Last synced: 29 days ago
JSON representation

AI Question Answering from PDF

Awesome Lists containing this project

README

        

# AI Question Answering from PDF πŸ“„πŸ€–

![Screenshot from 2024-12-11 20-56-38](https://github.com/user-attachments/assets/e85d991f-c224-4122-89d8-f678e1bbb3d2)

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](https://img.shields.io/badge/Python-3.9-blue) Python 3.9
- ![Flask](https://img.shields.io/badge/Flask-2.0.1-blue) Flask
- ![Bootstrap](https://img.shields.io/badge/Bootstrap-5-blue) Bootstrap 5
- ![Font Awesome](https://img.shields.io/badge/Font%20Awesome-5-red) Font Awesome Icons
- ![JavaScript](https://img.shields.io/badge/JavaScript-ES6-yellow) JavaScript ES6
- ![ngrok](https://img.shields.io/badge/ngrok-2.3-blue) 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![Screenshot from 2024-12-11 20-56-38](https://github.com/user-attachments/assets/85c73c0f-6894-4a8f-9f40-a874f91a31bb)

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:

![Screenshot from 2024-12-11 20-38-31](https://github.com/user-attachments/assets/45a8614f-8a95-49e5-8f12-7cb9d840e414)

## 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: [[email protected]](mailto:[email protected])
- GitHub: [@saeidsaadatigero](https://github.com/saeidsaadatigero)
- LinkedIn: [@saeidsaadatigero](https://www.linkedin.com/in/saeidsaadatigero)

```