Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def pred(HS, PS, EA, SH, SQPP):
|
|
25 |
x_new = x_new.reshape(1, -1)
|
26 |
x_new = scaler.transform(x_new)
|
27 |
y_pred = model.predict(x_new)
|
28 |
-
y_pred = np.round(y_pred[0], 2)
|
29 |
|
30 |
return f"la performance de cet etudiant est: {str(y_pred)}"
|
31 |
|
|
|
25 |
x_new = x_new.reshape(1, -1)
|
26 |
x_new = scaler.transform(x_new)
|
27 |
y_pred = model.predict(x_new)
|
28 |
+
y_pred = np.round(y_pred[0], 2)[0]
|
29 |
|
30 |
return f"la performance de cet etudiant est: {str(y_pred)}"
|
31 |
|