A simple Flask web app where users can upload a PDF or enter a topic name. The app summarizes the content and generates a small multiple-choice quiz. Users can answer and get instant grading.
- Upload PDF and extract text with PyPDF2
- Enter a topic (uses Wikipedia content)
- Frequency-based extractive summarization (NLTK)
- Auto-generated MCQ quiz and instant grading
- Minimal modern UI
- Create a virtual environment (Windows PowerShell):
python -m venv .venv
.\.venv\Scripts\Activate.ps1- Install dependencies:
pip install -r requirements.txt- Run the app:
$env:FLASK_SECRET_KEY = "change-me"
python app.pyOpen http://localhost:5000 in your browser.
- Quiz generation is heuristic; results depend on input quality.
- Wikipedia scraping has rate limits; avoid heavy usage.
- If NLTK downloads fail on first run, re-run the app while online.