This application converts PDF documents into interactive multiple-choice quizzes using AI. It extracts text from PDFs and generates relevant quiz questions using the Groq API.
- PDF text extraction
- AI-powered quiz generation using Groq API
- Interactive web interface with modern design
- Multiple choice questions with 4 options
- Quiz review with correct/incorrect answer marking
- Quiz results download as PDF
- Python 3.7 or higher
- Groq API key
-
Clone this repository:
git clone https://github.com/i-sonu/QUIZGEN.git cd QUIZGEN -
Install the required Python packages:
pip install -r requirements.txt
-
Create a
.envfile in the root directory and add your Groq API key:GROQ_API_KEY=your_api_key_here SECRET_KEY=your_secret_key_here
-
Start the Flask application:
python app.py
-
Open your web browser and navigate to
http://localhost:5000 -
Upload a PDF file and specify the number of questions
-
Wait for the quiz to be generated
-
Take the quiz and review your results
- The application extracts text from the uploaded PDF using PyPDF2
- The extracted text is sent to the Groq API to generate relevant quiz questions
- Questions are presented in an interactive format with smooth transitions
- Users can review their answers with correct/incorrect marking
- Quiz results and questions can be downloaded as PDF
This application uses the Groq API for question generation. Make sure you have a valid API key and sufficient credits for API usage.