Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,9 @@ def main():
|
|
24 |
writer.writeheader()
|
25 |
for state in state_list:
|
26 |
writer.writerow(state)
|
27 |
-
with open('state_data.csv', mode='rb') as file:
|
28 |
-
|
29 |
-
st.markdown(f'<a href="data:file/csv;base64,{b64}" download="state_data.csv">Download State Data CSV File</a>', unsafe_allow_html=True)
|
30 |
|
31 |
# Create a map with pie charts for each state
|
32 |
m = folium.Map(location=[37.0902, -95.7129], zoom_start=4)
|
|
|
24 |
writer.writeheader()
|
25 |
for state in state_list:
|
26 |
writer.writerow(state)
|
27 |
+
#with open('state_data.csv', mode='rb') as file:
|
28 |
+
# b64 = base64.b64encode(file.read()).decode('utf-8')
|
29 |
+
#st.markdown(f'<a href="data:file/csv;base64,{b64}" download="state_data.csv">Download State Data CSV File</a>', unsafe_allow_html=True)
|
30 |
|
31 |
# Create a map with pie charts for each state
|
32 |
m = folium.Map(location=[37.0902, -95.7129], zoom_start=4)
|