fschwartzer commited on
Commit
2f2b0d5
·
1 Parent(s): 1b87830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,6 +5,7 @@ from sklearn.neighbors import KNeighborsRegressor
5
  from geopy.distance import geodesic
6
  import googlemaps
7
  from geopy.exc import GeocoderTimedOut
 
8
 
9
 
10
  # Function to calculate distance in meters between two coordinates
@@ -232,6 +233,7 @@ filtered_data['Predicted_target'] = predicted_target
232
  # Display the map and filtered_data
233
  with st.container():
234
  st.map(filtered_data, zoom=zoom_level, use_container_width=True)
 
235
  st.write("Dados:", filtered_data) # Debug: Print filtered_data
236
 
237
  k_threshold = 5
 
5
  from geopy.distance import geodesic
6
  import googlemaps
7
  from geopy.exc import GeocoderTimedOut
8
+ from streamlit_folium import st_folium
9
 
10
 
11
  # Function to calculate distance in meters between two coordinates
 
233
  # Display the map and filtered_data
234
  with st.container():
235
  st.map(filtered_data, zoom=zoom_level, use_container_width=True)
236
+ st.folium.add_marker(location=[custom_lat, custom_lon], popup="Local pesquisado", icon=folium.Icon(color="blue"))
237
  st.write("Dados:", filtered_data) # Debug: Print filtered_data
238
 
239
  k_threshold = 5