Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
·
5b57634
1
Parent(s):
d0b80f5
Update app.py
Browse files
app.py
CHANGED
@@ -233,8 +233,17 @@ filtered_data['Predicted_target'] = predicted_target
|
|
233 |
|
234 |
# Display the map and filtered_data
|
235 |
with st.container():
|
236 |
-
|
237 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
238 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
239 |
|
240 |
k_threshold = 5
|
|
|
233 |
|
234 |
# Display the map and filtered_data
|
235 |
with st.container():
|
236 |
+
#st.map(filtered_data, zoom=zoom_level, use_container_width=True)
|
237 |
+
|
238 |
+
# Create a folium map centered around the custom location
|
239 |
+
map_custom = folium.Map(location=[custom_lat, custom_lon], zoom_start=zoom_level)
|
240 |
+
|
241 |
+
# Add a blue marker for the geocoded address
|
242 |
+
folium.Marker([custom_lat, custom_lon], tooltip='Local pesquisado', icon=folium.Icon(color='blue')).add_to(map_custom)
|
243 |
+
|
244 |
+
# Display the folium map using streamlit_folium
|
245 |
+
folium_static(map_custom)
|
246 |
+
|
247 |
st.write("Dados:", filtered_data) # Debug: Print filtered_data
|
248 |
|
249 |
k_threshold = 5
|