| title | Quiz Generator |
|---|---|
| emoji | 📚 |
| colorFrom | indigo |
| colorTo | purple |
| sdk | gradio |
| sdk_version | 5.21.0 |
| app_file | app.py |
| pinned | false |
An intelligent web application that automatically generates interactive quizzes from any web content using LlamaIndex and OpenAI. Perfect for educators, students, and lifelong learners who want to create engaging quizzes from online resources.
- 🌐 URL-based Quiz Generation: Simply paste any URL to generate questions
- 🤖 AI-Powered: Utilizes OpenAI's GPT models for intelligent question generation
- ✨ Interactive Interface: Clean, user-friendly Gradio interface
- 📝 Multiple Choice Format: Automatically generates 4 options per question
- 📊 Real-time Scoring: Instant feedback and score tracking
- 🔄 Continuous Learning: Learn from any web content interactively
Before you begin, ensure you have:
- Python 3.9 or higher installed
- An OpenAI API key (Get one here)
- Clone the repository:
git clone https://github.com/ckakgun/quiz-generator
cd quiz-generator- Create and activate a virtual environment:
# On Windows
python -m venv venv
.\venv\Scripts\activate
# On macOS/Linux
python3 -m venv venv
source venv/bin/activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python app.py-
Open your browser and go to
http://localhost:7862 -
Enter your OpenAI API key when prompted
-
Paste any URL or content to generate a quiz
-
Answer the questions and get instant feedback
Core dependencies:
gradio: Web interface frameworkopenai: OpenAI API clientlangchain-openai: LangChain OpenAI integrationllama-index-core: Core LlamaIndex functionalityllama-index-readers-web: Web content extractionllama-index-embeddings-openai: OpenAI embeddings supportpython-dotenv: Environment variable managementrequests: HTTP client
Common issues and solutions:
-
OpenAI API Key Issues:
- Make sure you've entered a valid OpenAI API key
- Check if your API key has sufficient credits
- Ensure you have billing set up in your OpenAI account
-
Web Content Extraction Issues:
- Some websites may block content extraction
- Try with different URLs if you encounter issues
- Make sure the URL is accessible
This project is licensed under the MIT License
If you encounter any issues:
- Check the Troubleshooting section above
- Open an issue on GitHub
- Make sure your dependencies are up to date
Made with ❤️ for learning
