LaurentTRIPIED commited on
Commit
9233c42
1 Parent(s): 3fdd5ae

Side barre 3 menus

Browse files
Files changed (1) hide show
  1. app.py +43 -16
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
- # Main function orchestrating the app UI
 
 
 
 
 
8
  def main():
9
- st.sidebar.title("Open Data RSE Bordeaux Métropole")
10
- app_mode = st.sidebar.radio("Choisissez votre onglet", ["Organisations engagées", "Localisations", "Statistiques", "Actions RSE"])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
- if app_mode == "Organisations engagées":
13
- display_organisations_engagees()
14
- elif app_mode == "Localisations":
15
- display_map()
16
- elif app_mode == "Statistiques":
17
- display_statistics()
18
- elif app_mode == "Actions RSE":
19
- display_actions_rse()
 
 
 
 
 
20
 
21
- # Après toutes les autres instructions dans votre barre latérale :
22
- st.sidebar.markdown("---") # Ajoute une ligne de séparation visuelle
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("---") # Ajoute une ligne de séparation visuelle
 
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()