File size: 834 Bytes
2232ce3
 
879c263
2232ce3
 
 
 
 
 
 
 
 
879c263
2232ce3
 
879c263
2232ce3
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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()