rashid01 commited on
Commit
cf1597e
·
verified ·
1 Parent(s): 1a7f62a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,9 +70,9 @@ input_data[num_features] = scaler.transform(input_data[num_features])
70
  # Add the additional feature (not part of scaling)
71
  input_data['loan_amnt_by_income'] = [loan_amnt_by_income]
72
 
73
- # Drop the 'cibil_score' before making predictions as it was not part of the training data
74
- input_data['cibil_score'] = cibil_score # Add cibil_score for other uses, if needed
75
- input_data = input_data[num_features + ['loan_amnt_by_income']] # Only keep features the model knows
76
 
77
  # Predict using the model
78
  if st.button('Predict'):
 
70
  # Add the additional feature (not part of scaling)
71
  input_data['loan_amnt_by_income'] = [loan_amnt_by_income]
72
 
73
+
74
+ input_data['cibil_score'] = cibil_score
75
+ input_data = input_data[num_features + ['loan_amnt_by_income']]
76
 
77
  # Predict using the model
78
  if st.button('Predict'):