Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
|
@@ -131,14 +131,14 @@ 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(
|
| 135 |
-
|
| 136 |
elif latlong_geo_nolatlong_encoded['propertyType_Condominium'].item() == 1:
|
| 137 |
-
st.success(
|
| 138 |
-
|
| 139 |
elif latlong_geo_nolatlong_encoded['propertyType_Executive_Condominium'].item() == 1:
|
| 140 |
-
st.success(
|
| 141 |
-
|
| 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 |
|
|
|
|
| 131 |
prediction_price = round(prediction_psf * input_floor_area_sqft)
|
| 132 |
|
| 133 |
if latlong_geo_nolatlong_encoded['propertyType_Apartment'].item() == 1:
|
| 134 |
+
st.success(f'The predicted price of your property is \\${prediction_price:,}, with 95% confidence interval at \\${int(prediction_price - 2*sd_apt*input_floor_area_sqft):,} - \\${int(prediction_price + 2*sd_apt*input_floor_area_sqft):,}.')
|
| 135 |
+
|
| 136 |
elif latlong_geo_nolatlong_encoded['propertyType_Condominium'].item() == 1:
|
| 137 |
+
st.success(f'The predicted price of your property is \\${prediction_price:,}, with 95% confidence interval at \\${int(prediction_price - 2*sd_condo*input_floor_area_sqft):,} - \\${int(prediction_price + 2*sd_condo*input_floor_area_sqft):,}.')
|
| 138 |
+
|
| 139 |
elif latlong_geo_nolatlong_encoded['propertyType_Executive_Condominium'].item() == 1:
|
| 140 |
+
st.success(f'The predicted price of your property is \\${prediction_price:,}, with 95% confidence interval at \\${int(prediction_price - 2*sd_ec*input_floor_area_sqft):,} - \\${int(prediction_price + 2*sd_ec*input_floor_area_sqft):,}.')
|
| 141 |
+
|
| 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 |
|