Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/saeidsaadatigero/ai-app
- Owner: saeidsaadatigero
- Created: 2024-12-11T17:10:02.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-11T17:49:27.000Z (about 1 month ago)
- Last Synced: 2024-12-11T18:24:22.621Z (about 1 month 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 ππ€
![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)```