LaurentTRIPIED
commited on
Commit
·
72b2576
1
Parent(s):
b19100f
Side barre 3 menus
Browse files
app.py
CHANGED
@@ -4,26 +4,53 @@ from localisation import display_map
|
|
4 |
from statistiques import main as display_statistics
|
5 |
from ActionsRSE import display_actions_rse
|
6 |
|
7 |
-
#
|
|
|
|
|
|
|
|
|
|
|
8 |
def main():
|
9 |
-
st.sidebar.title("
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
22 |
-
st.sidebar.markdown("---")
|
23 |
st.sidebar.markdown("Powered by **bziiit IA RSE**")
|
24 |
-
st.sidebar.markdown("---") # Ajoute une ligne de séparation visuelle
|
25 |
st.sidebar.markdown("2024 : Open source en Licence MIT")
|
26 |
-
st.sidebar.markdown("
|
|
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
-
main()
|
|
|
4 |
from statistiques import main as display_statistics
|
5 |
from ActionsRSE import display_actions_rse
|
6 |
|
7 |
+
# Import des fonctions IA depuis le sous-répertoire
|
8 |
+
# from IA_COMMERCE.Doc_Ref_COMMERCE import display_doc_ref_commerce
|
9 |
+
# from IA_COMMERCE.BP_COMMERCE import display_bp_commerce
|
10 |
+
# from IA_COMMERCE.Financement_TE_COMMERCE import display_Financement_TE_Commerce
|
11 |
+
# from IA_COMMERCE.IA_COMMERCE import display_ia_commerce
|
12 |
+
|
13 |
def main():
|
14 |
+
st.sidebar.title("OPEN DATA & IA au service de la RSE")
|
15 |
+
section_principale = st.sidebar.radio(
|
16 |
+
"Choisissez votre section",
|
17 |
+
["Data Bordeaux métropole", "Data bziiit", "IA RSE"]
|
18 |
+
)
|
19 |
+
|
20 |
+
if section_principale == "Data Bordeaux métropole":
|
21 |
+
app_mode = st.sidebar.radio(
|
22 |
+
"Choisissez votre onglet",
|
23 |
+
["Organisations engagées", "Localisations", "Statistiques", "Actions RSE"]
|
24 |
+
)
|
25 |
+
if app_mode == "Organisations engagées":
|
26 |
+
display_organisations_engagees()
|
27 |
+
elif app_mode == "Localisations":
|
28 |
+
display_map()
|
29 |
+
elif app_mode == "Statistiques":
|
30 |
+
display_statistics()
|
31 |
+
elif app_mode == "Actions RSE":
|
32 |
+
display_actions_rse()
|
33 |
|
34 |
+
elif section_principale == "Data bziiit":
|
35 |
+
ia_mode = st.sidebar.radio(
|
36 |
+
"Choisissez votre onglet",
|
37 |
+
["Projets RSE", "Labels RSE", "Marques engagées"]
|
38 |
+
)
|
39 |
+
# if ia_mode == "Documents Référence":
|
40 |
+
# display_doc_ref_commerce()
|
41 |
+
# elif ia_mode == "Bonnes Pratiques":
|
42 |
+
# display_bp_commerce()
|
43 |
+
# elif ia_mode == "Financements":
|
44 |
+
# display_Financement_TE_Commerce()
|
45 |
+
# elif ia_mode == "Dialogue IA":
|
46 |
+
# display_ia_commerce()
|
47 |
|
48 |
+
# Instructions communes à toutes les sections
|
49 |
+
st.sidebar.markdown("---")
|
50 |
st.sidebar.markdown("Powered by **bziiit IA RSE**")
|
|
|
51 |
st.sidebar.markdown("2024 : Open source en Licence MIT")
|
52 |
+
st.sidebar.markdown("[email protected]")
|
53 |
+
st.sidebar.markdown("---")
|
54 |
|
55 |
if __name__ == "__main__":
|
56 |
+
main()
|