-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
33 lines (24 loc) · 1.07 KB
/
app.py
File metadata and controls
33 lines (24 loc) · 1.07 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
30
31
32
33
import streamlit as st
import sys, os
# Setting directory to be parent root directory
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from config import LOGO_IMAGE
# --- Define Pages ---
home_page = st.Page("pages/home.py", title="Home")
demo_page = st.Page("pages/demo.py", title="Demo")
eval_page = st.Page("pages/evaluation.py", title="Model Evaluation")
doctors_page = st.Page("pages/doctors.py", title="Clinician Portal")
# --- Setup Navigation With Sections---
pages = {
"": [home_page],
"Projects": [demo_page, doctors_page],
"Performance": [eval_page]
}
navigation = st.navigation(pages)
# --- App Add-ins ---
st.logo(LOGO_IMAGE, size= "large")
st.sidebar.text("Made with ❤ by Bruno")
st.sidebar.markdown("[](https://www.linkedin.com/in/bruno-nwagbo)")
st.sidebar.markdown("[](https://github.com/iamcbn)")
# ---- Sidebar Customi
navigation.run()