🧠 What’s This All About?
Okay so picture this:
You’re reading a massive Wikipedia article on something like “Photosynthesis” and you’re like…
“Ughhh, I wish someone could just turn this into a quiz.”
So I built that.
It’s called QuizifyAI, and it turns any topic into instant multiple-choice questions using Python, Flask, and the magic of GPT.
No more info overload. Just clean, AI-powered study mode. 🧪💥
{{ advertisement }}
🔧 Tools I Played With
Here’s the tech stack I used:
- 🐍 Python – for the main engine
- 🌐 Flask – backend web framework
- 🧠 OpenAI GPT – to generate quiz questions
- 📚 Wikipedia API – to fetch topic summaries
- 💅 HTML/CSS + Bootstrap – for the frontend
Basically: small, powerful stack. Big brain energy. 💡
⚙️ How It Works (In Plain English)
- You type a topic (say, “Photosynthesis”)
- The app fetches summary from Wikipedia
- GPT turns it into 5 MCQs
- You get a quiz, instantly
Literally that simple.
📦 Code Glimpse (No Gatekeeping)
python
CopyEdit
python
CopyEdit
import wikipedia
from openai import OpenAI
topic = "Photosynthesis"
summary = wikipedia.summary(topic, sentences=5)
prompt = f"Create 5 multiple-choice questions with 4 options each based on the text: {summary}"
response = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": prompt}]
)
💡 What I Learned (Real Talk)
- GPT is wild but needs good prompts — vague = trash output
- Flask is amazing for MVPs — fast, clean, no bloat
- AI + web = ✨ magic ✨ if you keep things lightweight
🧪 Sample Output
Input: Photosynthesis
Generated Q:
What pigment helps in photosynthesis?
A) Hemoglobin
B) Chlorophyll ✅
C) Keratin
D) Melanin
Bro it actually works — and it feels like cheating (but smart cheating 😎).
🔮 Next Steps
- Add Flashcard Mode
- Deploy it on Vercel/Render
- Let users save quiz history
- Maybe drop a Chrome Extension?
Yup. I’m cooking.
🤝 Wrap Up
This was just a passion build. One weekend. No overthinking. Just me, Python, GPT, and a bunch of debugging.
If you’re into AI, learning tech, or just building weird useful stuff – try mixing APIs like this. You’ll be surprised at how far you can go with a simple idea and the right tools.
👋 Peace Out
Wanna connect or collab on cool stuff?
- 📧 himanshuwaz@gmail.com
- 📱 +91 8329029807
- 🌐 LinkedIn
Let’s build something dope. 🚀