File size: 1,186 Bytes
103dfda
dd843bb
 
86a67de
dd843bb
 
b3e87f7
 
bf28d70
103dfda
dd843bb
b3e87f7
dd843bb
 
b3e87f7
dd843bb
 
4f20d6b
b3e87f7
dd843bb
 
b3e87f7
dd843bb
ac57d94
b3e87f7
dd843bb
 
ac57d94
dd843bb
b3e87f7
dd843bb
 
 
509178e
dd843bb
 
 
 
bf28d70
 
103dfda
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import streamlit as st
from src.components.ai_tutor import AITutor
from src.components.code_playground import CodePlayground
from src.components.learning_paths import LearningPaths
from src.components.sidebar import Sidebar
from src.utils.session import initialize_session_state
from src.utils.ui import apply_custom_css  # Assuming apply_custom_css is still needed


def main():
    # Initialize app
    # Removed set_page_config for now
    apply_custom_css()
    initialize_session_state()

    # Initialize components
    ai_tutor = AITutor()
    learning_paths = LearningPaths()

    # Display sidebar
    Sidebar.display()

    # Title
    st.title("πŸ€– Guru.AI - Your AI Mentor")

    # Welcome message for new users
    if 'username' not in st.session_state:
        st.info("πŸ‘‹ Welcome to Guru.AI! Please enter your nickname to start learning.")
        return

    # Main content tabs
    tab1, tab2, tab3 = st.tabs(["πŸ“š Learning Paths", "πŸ€– AI Tutor", "πŸ’» Code Playground"])
    with tab1:
        learning_paths.display()
    with tab2:
        ai_tutor.display_chat_interface()
    with tab3:
        CodePlayground.display()

if __name__ == "__main__":
    main()