Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -146,7 +146,7 @@ with st.form("inputs"):
|
|
| 146 |
# use geosubset to have boxplot and folium map
|
| 147 |
|
| 148 |
if len(geosubset) > 0:
|
| 149 |
-
st.markdown('There are ' + str(len(geosubset)) + ' resale ' + input_propertyType + 's transacted between Jan 2017 and Oct 2022 which are similar to yours (drag the markers around as they might be overlapping):')
|
| 150 |
|
| 151 |
map = folium.Map(location=[1.290270, 103.851959], zoom_start=11)
|
| 152 |
|
|
@@ -188,7 +188,7 @@ with st.form("inputs"):
|
|
| 188 |
st.pyplot(fig)
|
| 189 |
|
| 190 |
else:
|
| 191 |
-
st.markdown('Oops! There are no resale ' + input_propertyType + 's transacted between Jan 2017 and Oct 2022 which are similar to yours :(')
|
| 192 |
|
| 193 |
# Get folium visualisations
|
| 194 |
temp_mrt = latlong_geo.geometry.apply(lambda x: geo_mrt.distance(x)).melt().drop(columns=['variable'])
|
|
|
|
| 146 |
# use geosubset to have boxplot and folium map
|
| 147 |
|
| 148 |
if len(geosubset) > 0:
|
| 149 |
+
st.markdown('There are ' + str(len(geosubset)) + ' resale ' + input_propertyType + 's transacted between Jan 2017 and Oct 2022 in your area which are similar to yours (drag the markers around as they might be overlapping):')
|
| 150 |
|
| 151 |
map = folium.Map(location=[1.290270, 103.851959], zoom_start=11)
|
| 152 |
|
|
|
|
| 188 |
st.pyplot(fig)
|
| 189 |
|
| 190 |
else:
|
| 191 |
+
st.markdown('Oops! There are no resale ' + input_propertyType + 's transacted between Jan 2017 and Oct 2022 in your area which are similar to yours :(')
|
| 192 |
|
| 193 |
# Get folium visualisations
|
| 194 |
temp_mrt = latlong_geo.geometry.apply(lambda x: geo_mrt.distance(x)).melt().drop(columns=['variable'])
|