Students often struggle to grasp difficult topics or summarize lengthy notes.
Study Buddy is an AI-powered web app that acts as a personal academic assistant, capable of:
- 🧩 Explaining complex concepts in simple terms
- 📄 Summarizing notes or uploaded PDFs
- ❓ Generating quizzes or flashcards for quick revision
It combines Streamlit for UI and Gemini 2.5 Flash API for fast, intelligent AI responses — all in a clean chat-based interface.
🔗 Check out the live app here! 🏎️
A lightweight Streamlit frontend interacts with Google’s Gemini 2.5 Flash backend through secure API calls.
All secrets are managed safely via .env and st.secrets.
| Mode | Function | Example |
|---|---|---|
| 🧠 Explainer | Simplifies academic concepts | “Explain Deadlock in OS” |
| 📄 Summarizer | Condenses notes or PDFs | Upload 20-page PDF → short summary |
| ❓ Quizzer | Generates MCQs & flashcards | “Create 10 questions on DBMS” |
Additional:
- 📂 PDF upload (text extraction via PyPDF2)
- 💬 Real-time chat interface
- 🔄 New chat reset option
- ☁️ Deployed on Streamlit Cloud
StudyBuddy/
├── main.py
├── requirements.txt
├── assets/
│ └── PROBLEM STATEMENTS.pdf
├── components/
│ ├── chat_ui.py
│ ├── pdf_handler.py
│ └── sidebar.py
├── core/
│ ├── ai_utils.py
│ ├── explainer.py
│ ├── pdf_handler.py
│ ├── quizzer.py
│ └── summarizer.py
└── utils/
└── gemini_helper.py
©️🖼️ Diagram Credits: https://gitdiagram.com/
| Category | Technologies |
|---|---|
| Frontend | Streamlit |
| Backend / AI Engine | Google Gemini 2.5 Flash API |
| Language | Python |
| Libraries | PyPDF2, google-generativeai, streamlit, dotenv |
| Deployment | Streamlit Community Cloud |
| Security | .env + st.secrets key handling |
- 🎯 Simple, modern, and interactive chat-based UI
- 📑 Summarization and quiz generation from user input or PDFs
- ⚡ Fast AI responses through Gemini 2.5 Flash
- 🧩 Smooth multi-mode workflow for learning support
- 🗣️ Speech-based interaction
- 🌐 Multi-language explanations
- 🧠 Flashcard & spaced-repetition support
- 👤 Implement memory-based personalization for users
- ☁️ Drive/Notion integration for saved sessions
🧩 “Integrating AI with Education — Making Learning Simpler, Smarter, and Accessible for All.”
Ammaar Ahmad Khan
- GitHub: @GPA95
🌟 If you find this repository useful, please give it a star! 🌟