fschwartzer commited on
Commit
045fa06
1 Parent(s): 59c117d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -278,8 +278,12 @@ with st.container():
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">Download Excel File</a>'
281
- st.markdown(href, unsafe_allow_html=True)
282
-
 
 
 
 
283
  folium_layermap = folium.Map(location=[custom_lat, custom_lon], zoom_start=zoom_level, control_scale=True)
284
 
285
  # Add heatmap layers for 'Valor_Urb', 'Valor_Eqp', and 'RENDA'
 
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">Download Excel File</a>'
281
+ #st.markdown(href, unsafe_allow_html=True)
282
+
283
+ # Use st.empty() to create a placeholder and update it with the link
284
+ download_placeholder = st.empty()
285
+ download_placeholder.markdown(href, unsafe_allow_html=True)
286
+
287
  folium_layermap = folium.Map(location=[custom_lat, custom_lon], zoom_start=zoom_level, control_scale=True)
288
 
289
  # Add heatmap layers for 'Valor_Urb', 'Valor_Eqp', and 'RENDA'