-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
29 lines (22 loc) · 1.2 KB
/
app.py
File metadata and controls
29 lines (22 loc) · 1.2 KB
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
import streamlit as st
# Define pages
home = st.Page("pages/Welcome.py", icon='🏠')
predict_student_risk = st.Page("pages/Predict_Student_Risk.py", icon='🔮') # for prediction
demo_predict = st.Page("pages/Demo_Prediction.py", icon='🎓') # Demo prediction
analysis_report = st.Page("pages/Generate_Analysis_Report.py", icon='📋') # For analysis report
demo_analysis_report = st.Page("pages/Demo_Analysis_Report.py", icon='🧪') # Demo analysis report
data_insights = st.Page("pages/Data_Insights.py", icon='📈') # For EDA
model_selection = st.Page("pages/Model_Selection.py", icon='⚙️') # For model selection
model_analysis = st.Page("pages/Model_Analysis.py", icon='🎯') # For SHAP
feedback = st.Page("pages/Feedback.py", icon='💬') # for feedback
credits = st.Page("pages/Credits.py", icon='📜') # for Credits
# Group pages
pg = st.navigation({
"Home": [home],
"Predict": [predict_student_risk, demo_predict], # Grouped prediction
"Analysis": [analysis_report, demo_analysis_report], # Grouped analysis report
"Insights": [data_insights, model_selection, model_analysis], # Model selection
"About": [feedback,credits] # Grouped feedback and credits
})
# Run the navigation
pg.run()