How srinivasskc/toddler-quiz-app works
Toddler Learning Buddy is a single-file Streamlit quiz app. A child chooses a topic, requests a question, then views picture clues, listens to spoken quiz text, selects an answer, and receives feedback; session state tracks progress. The app generates and validates most questions through local Ollama/Gemma, while counting questions have a visual-generation path. gTTS provides optional audio. The excerpt does not show the complete topic list or all rendering details, so the graph stays at documented and evidenced component boundaries.
Main entry points: app.py Streamlit interface
Components 12
Quiz experience
- Streamlit interface
app.py - Quiz session state
app.py - Answer and feedback
app.py
Question and clues
- Question generation
app.py - Counting questions
app.py - Question validation
app.py - Picture clues
app.py - Ollama Gemma
Spoken questions
- Spoken quiz text
app.py - gTTS
- Audio playback
app.py
Other components
- Child
Connections 14
- Child → Streamlit interface: uses
app.py - Streamlit interface → Question generation: requests question
app.py - Question generation → Counting questions: generates counting
app.py - Question generation → Ollama Gemma: requests quiz
app.py - Question generation → Question validation: validates response
app.py - Question generation → Streamlit interface: returns quiz
app.py - Streamlit interface → Quiz session state: stores quiz
app.py - Streamlit interface → Spoken quiz text: formats quiz
app.py - Spoken quiz text → gTTS: generates speech
app.py - Streamlit interface → Audio playback: plays audio
app.py - Streamlit interface → Picture clues: renders clues
app.py - Streamlit interface → Answer and feedback: checks answer
app.py - Answer and feedback → Quiz session state: updates score
app.py - Child → Answer and feedback: submits choice
app.py