antfraia commited on
Commit
d26ed7b
·
1 Parent(s): e6ac219

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -18,6 +18,14 @@ def fetch_weather_info(lat, lon):
18
  response = requests.get(url)
19
  return response.json()
20
 
 
 
 
 
 
 
 
 
21
  # Streamlit app
22
  st.title("Data Visualization")
23
 
@@ -31,6 +39,7 @@ if website_name:
31
  lat = google_maps_data["location"]["lat"]
32
  lng = google_maps_data["location"]["lng"]
33
  if lat and lng:
 
34
  weather_data = fetch_weather_info(lat, lng)
35
  current_weather = weather_data.get("current", {})
36
  st.write(f"**Location:** {lat}, {lng}")
 
18
  response = requests.get(url)
19
  return response.json()
20
 
21
+ # Data for occupancy
22
+ occupancy_data = {
23
+ 'Su': [{'hour': 6, 'occupancyPercent': 0}, ...], # truncated for brevity
24
+ 'Mo': [{'hour': 6, 'occupancyPercent': 0}, ...],
25
+ # ... other days ...
26
+ 'Sa': [{'hour': 6, 'occupancyPercent': 0}, ...]
27
+ }
28
+
29
  # Streamlit app
30
  st.title("Data Visualization")
31
 
 
39
  lat = google_maps_data["location"]["lat"]
40
  lng = google_maps_data["location"]["lng"]
41
  if lat and lng:
42
+ st.map(pd.DataFrame({'lat': [lat], 'lon': [lng]})) # Display the map
43
  weather_data = fetch_weather_info(lat, lng)
44
  current_weather = weather_data.get("current", {})
45
  st.write(f"**Location:** {lat}, {lng}")