Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
| 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
|