-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.py
41 lines (31 loc) · 1.55 KB
/
app.py
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__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
import streamlit as st
fav_icon = "assets/brand/edugenius_icon.png"
st.set_page_config(layout="wide", page_title="EduGenius", page_icon=fav_icon)
# st.html("""
# <style>
# [alt=Logo] {
# height: 2rem;
# }
# </style>
# """)
sidear_logo = "assets/brand/edugenius_logo.png"
main_body_logo = "assets/brand/edugenius_icon.png"
st.logo(sidear_logo, icon_image=main_body_logo, size="large")
home_page = st.Page("pages/home.py", title = "Home", icon =":material/home:", default=True)
dashboard_page = st.Page("pages/dashboard.py", title = "Dashboard", icon =":material/dashboard:")
QA = st.Page("pages/chat.py", title = "Q&A", icon =":material/question_answer:")
math_solver = st.Page("pages/math_solver.py", title = "Math Solver", icon =":material/function:")
feedback_page = st.Page("pages/feedbacks.py", title = "Feedback", icon =":material/feedback:")
documentation_page = st.Page("pages/documentation.py", title = "Documentation", icon =":material/book:")
test_page = st.Page("pages/test.py", title = "Test", icon =":material/assessment:")
about_page = st.Page("pages/about.py", title = "About", icon =":material/info:")
pg = st.navigation({
"Main Menu":[ home_page, dashboard_page,QA, math_solver, feedback_page, about_page, documentation_page]
})
with st.sidebar:
st.write("Admin Tools")
st.link_button("Admin Dashboard", 'https://cloud.langfuse.com/project/clyejfzen000vootvl9vdtb7g', use_container_width=True, icon=":material/line_axis:")
pg.run()