Skip to content

Atishayjain26/just

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

PDF Quizzer (Flask)

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.

Features

  • 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

Setup

  1. Create a virtual environment (Windows PowerShell):
python -m venv .venv
.\.venv\Scripts\Activate.ps1
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the app:
$env:FLASK_SECRET_KEY = "change-me"
python app.py

Open http://localhost:5000 in your browser.

Notes

  • 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.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published