Iralion commited on
Commit
144f9bd
·
verified ·
1 Parent(s): 64928e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def prediction_simple(age, job, marital, education, housing, loan, contact, mont
33
  # Normaliser
34
  x_new = scaler.transform(x_new)
35
  # Prediction
36
- y_pred = rf.predict(x_new)
37
  return "Souscrire" if y_pred==1 else "Pas souscrire"
38
 
39
  # Fonction de prédiction multiple
 
33
  # Normaliser
34
  x_new = scaler.transform(x_new)
35
  # Prediction
36
+ y_pred = model.predict(x_new)
37
  return "Souscrire" if y_pred==1 else "Pas souscrire"
38
 
39
  # Fonction de prédiction multiple