File size: 1,993 Bytes
c8c3cc4
 
 
d0661bd
c4b812c
d63f1d2
9157013
318964b
c8c3cc4
72b2576
98691d1
 
 
 
 
0527fa6
72b2576
 
 
98691d1
72b2576
 
 
 
98691d1
 
72b2576
98691d1
72b2576
98691d1
 
72b2576
 
 
 
98691d1
 
fc09623
72b2576
 
98691d1
 
72b2576
98691d1
 
 
 
f68cea8
72b2576
 
9bb081d
bab1718
72b2576
 
441f66b
0527fa6
98691d1
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
45
46
47
48
49
50
51
52
53
54
55
56
57
import sys
import os

import streamlit as st
from organisations_engagees import display_organisations_engagees
from localisation import display_map
from statistiques import main as display_statistics
from ActionsRSE import display_actions_rse
from AnalyseActionsRSE import display_analyse_actions_rse

# Import modifiédes fonctions liées aux scripts
from projetRSE import display_rse_projects
from labelRSE import display_rse_labels
from marquesengagees import display_engaged_brands

def main():
    st.sidebar.title("OPEN DATA & IA au service de la RSE")
    section_principale = st.sidebar.radio(
        "Choisissez votre section",
        ["Data Bordeaux métropole", "Data bziiit"]
    )

    if section_principale == "Data Bordeaux métropole":
        app_mode = st.sidebar.radio(
            "Choisissez votre sous-section",
            ["Localisations", "Organisations engagées", "Statistiques", "Actions RSE", "Analyse actions RSE"]
        )
        if app_mode == "Localisations":
            display_map()
        elif app_mode == "Organisations engagées":
            display_organisations_engagees()
        elif app_mode == "Statistiques":
            display_statistics()
        elif app_mode == "Actions RSE":
            display_actions_rse()
        elif app_mode == "Analyse actions RSE":
            display_analyse_actions_rse()

    elif section_principale == "Data bziiit":
        ia_mode = st.sidebar.radio(
            "Choisissez votre sous-section",
            ["Labels RSE", "Projets RSE"]
        )
        if ia_mode == "Labels RSE":
            display_rse_labels()
        elif ia_mode == "Projets RSE":
            display_rse_projects()

    # Instructions communes à toutes les sections
    st.sidebar.markdown("---")
    st.sidebar.markdown("Powered by **bziiit IA RSE**")
    st.sidebar.markdown("2024 : Open source en Licence MIT")
    st.sidebar.markdown("info@bziiit.com")
    st.sidebar.markdown("---")

if __name__ == "__main__":
    main()