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).
- 📄 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.
- Python 3.9
- Flask
- Bootstrap 5
- Font Awesome Icons
- JavaScript ES6
- ngrok for tunneling (used for demo purposes)
-
Clone the repository:
git clone https://github.com/saeidsaadatigero/ai-question-answering-pdf.git
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask server:
python app.py
-
Open the provided URL in your browser and upload a PDF to start asking questions!
Here’s a demo of how the application looks:
- Upload PDF: The user uploads a PDF file containing the document they want to ask questions about.
- Ask a Question: The user enters a question related to the content of the PDF.
- AI Processing: The backend processes the file and the question using NLP techniques.
- Answer: The AI generates an answer based on the context extracted from the PDF and returns it to the user.
- 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.
-
Clone this repository:
git clone https://github.com/saeidsaadatigero/ai-question-answering-pdf.git
-
Install Python dependencies:
pip install -r requirements.txt
-
Run the app:
python app.py
Open your browser and go to
http://localhost:5000
.
-
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)
- Fork this repository.
- Create your branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to reach out if you have any questions or suggestions!
- Email: [email protected]
- GitHub: @saeidsaadatigero
- LinkedIn: @saeidsaadatigero