Chia Woon Yap
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -308,7 +308,7 @@ def predict_hdb_price(town, flat_type, flat_model, floor_area_sqm, storey_level,
|
|
| 308 |
predicted_price = max(0, float(models['xgboost'].predict(processed_input)[0]))
|
| 309 |
except Exception as e:
|
| 310 |
print(f"❌ XGBoost prediction error: {e}")
|
| 311 |
-
predicted_price =
|
| 312 |
|
| 313 |
# Create insights
|
| 314 |
remaining_lease = 99 - flat_age
|
|
|
|
| 308 |
predicted_price = max(0, float(models['xgboost'].predict(processed_input)[0]))
|
| 309 |
except Exception as e:
|
| 310 |
print(f"❌ XGBoost prediction error: {e}")
|
| 311 |
+
predicted_price = 420000 # Fallback value
|
| 312 |
|
| 313 |
# Create insights
|
| 314 |
remaining_lease = 99 - flat_age
|