Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,38 +4,36 @@ from src.components.code_playground import CodePlayground
|
|
| 4 |
from src.components.learning_paths import LearningPaths
|
| 5 |
from src.components.sidebar import Sidebar
|
| 6 |
from src.utils.session import initialize_session_state
|
| 7 |
-
from src.utils.ui import
|
|
|
|
| 8 |
|
| 9 |
def main():
|
| 10 |
# Initialize app
|
| 11 |
-
|
| 12 |
apply_custom_css()
|
| 13 |
initialize_session_state()
|
| 14 |
-
|
| 15 |
# Initialize components
|
| 16 |
ai_tutor = AITutor()
|
| 17 |
learning_paths = LearningPaths()
|
| 18 |
-
|
| 19 |
# Display sidebar
|
| 20 |
Sidebar.display()
|
| 21 |
-
|
| 22 |
# Title
|
| 23 |
st.title("π€ Guru.AI - Your AI Mentor")
|
| 24 |
-
|
| 25 |
# Welcome message for new users
|
| 26 |
if 'username' not in st.session_state:
|
| 27 |
st.info("π Welcome to Guru.AI! Please enter your nickname to start learning.")
|
| 28 |
return
|
| 29 |
-
|
| 30 |
# Main content tabs
|
| 31 |
tab1, tab2, tab3 = st.tabs(["π Learning Paths", "π€ AI Tutor", "π» Code Playground"])
|
| 32 |
-
|
| 33 |
with tab1:
|
| 34 |
learning_paths.display()
|
| 35 |
-
|
| 36 |
with tab2:
|
| 37 |
ai_tutor.display_chat_interface()
|
| 38 |
-
|
| 39 |
with tab3:
|
| 40 |
CodePlayground.display()
|
| 41 |
|
|
|
|
| 4 |
from src.components.learning_paths import LearningPaths
|
| 5 |
from src.components.sidebar import Sidebar
|
| 6 |
from src.utils.session import initialize_session_state
|
| 7 |
+
from src.utils.ui import apply_custom_css # Assuming apply_custom_css is still needed
|
| 8 |
+
|
| 9 |
|
| 10 |
def main():
|
| 11 |
# Initialize app
|
| 12 |
+
# Removed set_page_config for now
|
| 13 |
apply_custom_css()
|
| 14 |
initialize_session_state()
|
| 15 |
+
|
| 16 |
# Initialize components
|
| 17 |
ai_tutor = AITutor()
|
| 18 |
learning_paths = LearningPaths()
|
| 19 |
+
|
| 20 |
# Display sidebar
|
| 21 |
Sidebar.display()
|
| 22 |
+
|
| 23 |
# Title
|
| 24 |
st.title("π€ Guru.AI - Your AI Mentor")
|
| 25 |
+
|
| 26 |
# Welcome message for new users
|
| 27 |
if 'username' not in st.session_state:
|
| 28 |
st.info("π Welcome to Guru.AI! Please enter your nickname to start learning.")
|
| 29 |
return
|
| 30 |
+
|
| 31 |
# Main content tabs
|
| 32 |
tab1, tab2, tab3 = st.tabs(["π Learning Paths", "π€ AI Tutor", "π» Code Playground"])
|
|
|
|
| 33 |
with tab1:
|
| 34 |
learning_paths.display()
|
|
|
|
| 35 |
with tab2:
|
| 36 |
ai_tutor.display_chat_interface()
|
|
|
|
| 37 |
with tab3:
|
| 38 |
CodePlayground.display()
|
| 39 |
|