Chia Woon Yap commited on
Commit
b616228
·
verified ·
1 Parent(s): 1027a8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = 400000 # Fallback value
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