Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -131,16 +131,16 @@ with st.form("inputs"):
|
|
| 131 |
prediction_price = round(prediction_psf * input_floor_area_sqft)
|
| 132 |
|
| 133 |
if latlong_geo_nolatlong_encoded['propertyType_Apartment'].item() == 1:
|
| 134 |
-
st.success("The predicted price of your property is ${:,}, with 95% confidence interval at ${:,} - ${:,}.".format(
|
| 135 |
prediction_price, int(prediction_price - 2*sd_hdb*input_floor_area_sqft), int(prediction_price + 2*sd_hdb*input_floor_area_sqft)))
|
| 136 |
elif latlong_geo_nolatlong_encoded['propertyType_Condominium'].item() == 1:
|
| 137 |
-
st.success("The predicted price of your property is ${:,}, with 95% confidence interval at ${:,} - ${:,}.".format(
|
| 138 |
prediction_price, int(prediction_price - 2*sd_condo*input_floor_area_sqft), int(prediction_price + 2*sd_condo*input_floor_area_sqft)))
|
| 139 |
elif latlong_geo_nolatlong_encoded['propertyType_Executive_Condominium'].item() == 1:
|
| 140 |
-
st.success("The predicted price of your property is ${:,}, with 95% confidence interval at ${:,} - ${:,}.".format(
|
| 141 |
prediction_price, int(prediction_price - 2*sd_ec*input_floor_area_sqft), int(prediction_price + 2*sd_ec*input_floor_area_sqft)))
|
| 142 |
elif latlong_geo_nolatlong_encoded['propertyType_HDB'].item() == 1:
|
| 143 |
-
st.success(f'The predicted price of your property is \${prediction_price:,}, with 95% confidence interval at \${int(prediction_price - 2*sd_hdb*input_floor_area_sqft):,} - \${int(prediction_price + 2*sd_hdb*input_floor_area_sqft):,}.')
|
| 144 |
|
| 145 |
# between Jan 2017 and Oct 2022, propertyType, age, floor area range, storey
|
| 146 |
# use geosubset to have boxplot and folium map
|
|
|
|
| 131 |
prediction_price = round(prediction_psf * input_floor_area_sqft)
|
| 132 |
|
| 133 |
if latlong_geo_nolatlong_encoded['propertyType_Apartment'].item() == 1:
|
| 134 |
+
st.success("The predicted price of your property is `$`{:,}, with 95% confidence interval at `$`{:,} - `$`{:,}.".format(
|
| 135 |
prediction_price, int(prediction_price - 2*sd_hdb*input_floor_area_sqft), int(prediction_price + 2*sd_hdb*input_floor_area_sqft)))
|
| 136 |
elif latlong_geo_nolatlong_encoded['propertyType_Condominium'].item() == 1:
|
| 137 |
+
st.success("The predicted price of your property is <span>$</span>{:,}, with 95% confidence interval at <span>$</span>{:,} - <span>$</span>{:,}.".format(
|
| 138 |
prediction_price, int(prediction_price - 2*sd_condo*input_floor_area_sqft), int(prediction_price + 2*sd_condo*input_floor_area_sqft)))
|
| 139 |
elif latlong_geo_nolatlong_encoded['propertyType_Executive_Condominium'].item() == 1:
|
| 140 |
+
st.success("The predicted price of your property is $\$${:,}, with 95% confidence interval at $\$${:,} - $\$${:,}.".format(
|
| 141 |
prediction_price, int(prediction_price - 2*sd_ec*input_floor_area_sqft), int(prediction_price + 2*sd_ec*input_floor_area_sqft)))
|
| 142 |
elif latlong_geo_nolatlong_encoded['propertyType_HDB'].item() == 1:
|
| 143 |
+
st.success(f'The predicted price of your property is \\${prediction_price:,}, with 95% confidence interval at \\${int(prediction_price - 2*sd_hdb*input_floor_area_sqft):,} - \\${int(prediction_price + 2*sd_hdb*input_floor_area_sqft):,}.')
|
| 144 |
|
| 145 |
# between Jan 2017 and Oct 2022, propertyType, age, floor area range, storey
|
| 146 |
# use geosubset to have boxplot and folium map
|