How themodernturing/ai-learning-companion works
Project type and purpose
• It provides different modes (Student Mode, AI Learning Mode, About) and multiple grade-level chatbots (Grade 3–6).
• Utilities for AI interactions (ai_utils.py) and text-to-speech (tts_utils.py) indicate use of external AI and TTS services.
File structure
• Top-level:
• .devcontainer/ for development environment config
• app.py: main entrypoint → launches the web server and routing
• assets/: static files (images, styles, etc.)
• pages/: individual page modules, each a Streamlit page component
• utils/: shared logic—ai_utils.py, tts_utils.py
• requirements.txt: lists Python dependencies
• venv/: Python virtual environment (not part of runtime arch)
• Pattern: Monolithic front-end + back-end in one process, with clear separation between UI pages and utility layers.
README
• No content provided; rely entirely on file structure.
Elements
– Clear labels: “User (Browser),” “Streamlit Server (app.py),” “Page: 1_Student_Mode,” etc.
• From User → Streamlit Server → Page Module → Utilities → External Service
• Back through the same chain to User