forked from Jean-Baptiste-N/projet_data_JBN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
44 lines (38 loc) · 1.61 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
42
43
44
import streamlit as st
from utils.analytics import add_analytics
import streamlit.components.v1 as components
from bs4 import BeautifulSoup
import shutil
import pathlib
import logging
# Add analytics
add_analytics()
# Configuration de la page - doit être la première commande Streamlit
st.set_page_config(
page_title="Analyse Hospitalière",
page_icon="🏥",
layout="wide",
initial_sidebar_state="auto"
)
# Organisation des pages
home = st.Page("pages/Home.py", title="Accueil", icon="🏠", default=True)
vue_globale = st.Page("pages/Vue_globale.py", title="Vue générale", icon="🏥")
carte_de_france = st.Page("pages/carte_de_france.py", title="Carte de France", icon="🌍")
chatSQL = st.Page("pages/docteur_analyste.py", title="Votre assistant virtuel", icon="👨⚕️")
chirurgie = st.Page("pages/chirurgie.py", title="Chirurgie", icon="👨⚕️")
medecine = st.Page("pages/medecine.py", title="Médecine", icon="⚕️")
obstetrique = st.Page("pages/obstetrique.py", title="Obstétrique", icon="👶")
esdn = st.Page("pages/esnd.py", title="ESND", icon="🏥")
psy = st.Page("pages/psy.py", title="Psychiatrie", icon="🧠")
ssr = st.Page("pages/ssr.py", title="SSR", icon="♿")
predictif = st.Page("pages/predictions.py", title="Modèles de prédiction", icon="📊")
# Organisation en sections
pg = st.navigation({
"Accueil": [home],
"Vue générale en France": [vue_globale, carte_de_france],
"Vue par service médical": [chirurgie, medecine, obstetrique, psy, ssr, esdn],
"Modèles prédictifs": [predictif],
"Outils": [chatSQL]
})
# Exécution de la page sélectionnée
pg.run()