awacke1 commited on
Commit
e0fa2e9
1 Parent(s): ee21116

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -40,17 +40,17 @@ with g.subgraph(name='cluster_US') as c:
40
  st.graphviz_chart(g)
41
 
42
  # Create a Folium map of the hospitals
43
- m = folium.Map(location=[39.5, -98.35], zoom_start=4)
44
 
45
- for hospital in hospitals:
46
- folium.Marker(
47
- location=[hospital[1].split(', ')[0], hospital[1].split(', ')[1]],
48
- popup=f"{hospital[0]}\n{hospital[1]}\n{hospital[2]} beds",
49
- icon=folium.Icon(color='red', icon='info-sign')
50
- ).add_to(m)
51
 
52
  # Display the Folium map in Streamlit
53
- folium_static(m)
54
 
55
  # Create a dataframe of the hospital data
56
  df = pd.DataFrame(hospitals, columns=['Hospital', 'Location', 'Bed Size'])
 
40
  st.graphviz_chart(g)
41
 
42
  # Create a Folium map of the hospitals
43
+ #m = folium.Map(location=[39.5, -98.35], zoom_start=4)
44
 
45
+ #for hospital in hospitals:
46
+ # folium.Marker(
47
+ # location=[hospital[1].split(', ')[0], hospital[1].split(', ')[1]],
48
+ # popup=f"{hospital[0]}\n{hospital[1]}\n{hospital[2]} beds",
49
+ # icon=folium.Icon(color='red', icon='info-sign')
50
+ # ).add_to(m)
51
 
52
  # Display the Folium map in Streamlit
53
+ #folium_static(m)
54
 
55
  # Create a dataframe of the hospital data
56
  df = pd.DataFrame(hospitals, columns=['Hospital', 'Location', 'Bed Size'])