fschwartzer commited on
Commit
7bc3e68
1 Parent(s): 6827a2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -307,7 +307,7 @@ with st.container():
307
  download_placeholder.markdown(href, unsafe_allow_html=True)
308
 
309
 
310
- folium_layermap = folium.Map(location=[latitude, longitude], zoom_start=12, tiles='Stamen Toner')
311
 
312
  # Add heatmap layers for 'Valor_Urb', 'Valor_Eqp', and 'RENDA'
313
  add_heatmap_layer(folium_layermap, filtered_data, 'Valor_Urb', 'RdBu_r')
@@ -351,7 +351,7 @@ if 'Predicted_target' in filtered_data.columns and not np.all(predicted_target =
351
  mean_value = np.mean(filtered_data['Predicted_target'])
352
 
353
  # Display the results with custom styling
354
- st.markdown("## **Algoritmo **")
355
  st.write(f"Valor médio (Reais/m²) para as características selecionadas: ${mean_value:.2f}$ Reais")
356
  st.write(f"Os valores podem variar entre ${lower_bound:.2f}$ e ${higher_bound:.2f}$ Reais, dependendo das características dos imóveis.")
357
  else:
 
307
  download_placeholder.markdown(href, unsafe_allow_html=True)
308
 
309
 
310
+ folium_layermap = folium.Map(location=[custom_lat, custom_lon], zoom_start=12, tiles='Stamen Toner')
311
 
312
  # Add heatmap layers for 'Valor_Urb', 'Valor_Eqp', and 'RENDA'
313
  add_heatmap_layer(folium_layermap, filtered_data, 'Valor_Urb', 'RdBu_r')
 
351
  mean_value = np.mean(filtered_data['Predicted_target'])
352
 
353
  # Display the results with custom styling
354
+ st.markdown("## **Algoritmo KNN (K-nearest neighbors)**")
355
  st.write(f"Valor médio (Reais/m²) para as características selecionadas: ${mean_value:.2f}$ Reais")
356
  st.write(f"Os valores podem variar entre ${lower_bound:.2f}$ e ${higher_bound:.2f}$ Reais, dependendo das características dos imóveis.")
357
  else: