LaurentTRIPIED commited on
Commit
e383d26
1 Parent(s): f266ac0

Pytorch v.51

Browse files
__pycache__/data_manager.cpython-312.pyc ADDED
Binary file (852 Bytes). View file
 
__pycache__/localisation.cpython-312.pyc CHANGED
Binary files a/__pycache__/localisation.cpython-312.pyc and b/__pycache__/localisation.cpython-312.pyc differ
 
__pycache__/organisations_engagees.cpython-312.pyc CHANGED
Binary files a/__pycache__/organisations_engagees.cpython-312.pyc and b/__pycache__/organisations_engagees.cpython-312.pyc differ
 
app.py CHANGED
@@ -3,20 +3,10 @@ import pandas as pd
3
  import requests
4
  import folium
5
  from streamlit_folium import folium_static
 
6
  from organisations_engagees import display_organisations_engagees
7
  from localisation import display_map
8
 
9
- # Fonction pour récupérer les données de l'API
10
- def get_data():
11
- url = "https://opendata.bordeaux-metropole.fr/api/records/1.0/search/?dataset=met_etablissement_rse&q=&rows=100"
12
- response = requests.get(url)
13
- if response.status_code == 200:
14
- data = response.json()
15
- records = data.get("records", [])
16
- return [record["fields"] for record in records], data.get("nhits", 0)
17
- else:
18
- return [], 0
19
-
20
  # Main function orchestrating the app UI
21
  def main():
22
  st.sidebar.title("Navigation")
 
3
  import requests
4
  import folium
5
  from streamlit_folium import folium_static
6
+ from data_manager import get_data
7
  from organisations_engagees import display_organisations_engagees
8
  from localisation import display_map
9
 
 
 
 
 
 
 
 
 
 
 
 
10
  # Main function orchestrating the app UI
11
  def main():
12
  st.sidebar.title("Navigation")