This is a Flask-based web application that allows users to upload PDFs and generate AI-powered quizzes from the extracted text.
git clone https://github.com/MH221B/AI-Project.git
cd AI-Projectpython -m venv .venv
source .venv/bin/activate # On macOS/Linux
# OR
.venv\Scripts\activate # On WindowsOption 2: Using VS Code
- Press Ctrl + Shift + P (or Cmd + Shift + P on macOS).
- Search for "Python: Create Environment" and select it.
- Select your Python interpreter.
- Choose "venv" as the environment type.
- Activate the environment when prompted.
pip install -r requirements.txtCreate a .env file and add any necessary configurations (to be decided).
python run.pyVisit: http://127.0.0.1:5000
quiz_ai_project/
├── app/ # Main application folder
│ ├── __init__.py # Initializes Flask app
│ ├── controllers/ # Handles routes and requests
│ │ ├── .gitkeep
│ ├── services/ # Business logic (e.g., AI processing)
│ │ ├── .gitkeep
│ ├── static/ # CSS, JavaScript, images
│ │ ├── .gitkeep
│ ├── templates/ # HTML templates (Jinja2)
│ │ ├── index.html # Home page
├── uploads/ # Stores uploaded PDFs
│ ├── .gitkeep
├── .env # Environment variables
├── .gitignore # Files to ignore in Git
├── requirements.txt # Required Python packages
├── run.py # Main entry point
└── README.md # Project documentation
- Upload PDF files
- Extract texts and images from PDFs
- Generate AI-powered quiz questions
- Display quizzes in an interactive UI
This project is open-source under the MIT License.