Spaces:
Sleeping
Sleeping
| import streamlit as st | |
| # Set up the Streamlit page and navigation | |
| st.set_page_config(page_title="AI-Driven Learning Platform", layout="wide") | |
| st.sidebar.title("AI Learning Platform") | |
| pages = { | |
| "Personalized Study Paths": "study_paths", | |
| "Coding Challenges": "coding_challenges", | |
| "AI-Assisted Explanations": "ai_explanations" | |
| } | |
| # Sidebar for selecting a page | |
| selection = st.sidebar.radio("Navigate", list(pages.keys())) | |
| # Navigation logic | |
| if selection == "Personalized Study Paths": | |
| from pages.study_paths import show_study_paths | |
| show_study_paths() | |
| elif selection == "Coding Challenges": | |
| from pages.coding_challenges import show_coding_challenges | |
| show_coding_challenges() | |
| elif selection == "AI-Assisted Explanations": | |
| from pages.ai_explanations import show_ai_explanations | |
| show_ai_explanations() | |