File size: 532 Bytes
d0661bd
c4b812c
 
9ee810a
0527fa6
a631fd0
82ba0e3
c4b812c
bb3771a
82ba0e3
bb3771a
82ba0e3
 
0527fa6
 
10118ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
from organisations_engagees import display_organisations_engagees
from localisation import display_map, get_data

def main():
    st.sidebar.title("Navigation")
    app_mode = st.sidebar.radio("Choisissez l'onglet", ["Organisations engagées", "Localisation des Entreprises"])

    data = get_data()
    if app_mode == "Organisations engagées":
        display_organisations_engagees(data)
    elif app_mode == "Localisation des Entreprises":
        display_map(data)

if __name__ == "__main__":
    main()