Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
53c3483
1
Parent(s):
045fa06
Update app.py
Browse files
app.py
CHANGED
@@ -260,8 +260,8 @@ with st.container():
|
|
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
|
264 |
-
st.write("
|
265 |
# Set up the file to be downloaded
|
266 |
output_df = filtered_data
|
267 |
|
@@ -277,7 +277,7 @@ with st.container():
|
|
277 |
|
278 |
# Create a download link
|
279 |
b64 = base64.b64encode(excel_buffer.read()).decode()
|
280 |
-
href = f'<a href="data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,{b64}" download="sample_data.xlsx">
|
281 |
#st.markdown(href, unsafe_allow_html=True)
|
282 |
|
283 |
# Use st.empty() to create a placeholder and update it with the link
|
|
|
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 planilha'):
|
264 |
+
st.write("Preparando...")
|
265 |
# Set up the file to be downloaded
|
266 |
output_df = filtered_data
|
267 |
|
|
|
277 |
|
278 |
# Create a download link
|
279 |
b64 = base64.b64encode(excel_buffer.read()).decode()
|
280 |
+
href = f'<a href="data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,{b64}" download="sample_data.xlsx">Clique aqui para baixar a planilha</a>'
|
281 |
#st.markdown(href, unsafe_allow_html=True)
|
282 |
|
283 |
# Use st.empty() to create a placeholder and update it with the link
|