Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
9602bfe
1
Parent(s):
e7d9cc7
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,7 @@ from streamlit_folium import st_folium
|
|
9 |
import folium
|
10 |
from branca.colormap import LinearColormap
|
11 |
import base64
|
|
|
12 |
|
13 |
|
14 |
# Function to add heatmap layer to folium map
|
@@ -259,7 +260,7 @@ with st.container():
|
|
259 |
st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
260 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
261 |
|
262 |
-
if st.button('
|
263 |
st.write("Baixando...")
|
264 |
# Set up the file to be downloaded
|
265 |
output_df = filtered_data
|
|
|
9 |
import folium
|
10 |
from branca.colormap import LinearColormap
|
11 |
import base64
|
12 |
+
from io import BytesIO
|
13 |
|
14 |
|
15 |
# Function to add heatmap layer to folium map
|
|
|
260 |
st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
261 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
262 |
|
263 |
+
if st.button('Baixar EXCEL'):
|
264 |
st.write("Baixando...")
|
265 |
# Set up the file to be downloaded
|
266 |
output_df = filtered_data
|