A web application that generates quizzes from text or PDF documents using Google's Gemini AI.
- Generate quizzes from text input
- Upload PDF documents and extract text for quiz generation
- Multiple quiz types: Multiple Choice, Short Answer, Long Answer
- Modern, responsive UI
-
Navigate to the backend directory:
cd backend
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the backend directory with your Gemini API key:GEMINI_API_KEY=your_api_key_here
-
Start the backend server:
uvicorn main:app --reload
-
Navigate to the frontend directory:
cd frontend
-
Install dependencies:
npm install
-
Start the frontend development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
- Enter text directly in the text area or upload a PDF file
- Select the quiz type (Multiple Choice, Short Answer, or Long Answer)
- Click "Generate Quiz" to create a quiz based on the input
- View and interact with the generated questions
- Backend: FastAPI, Google Gemini AI, PyPDF2
- Frontend: React, Axios
- Styling: CSS
MIT