Truong-Phuc Nguyen
commited on
Commit
•
b829bf9
1
Parent(s):
6b86935
Update Home.py
Browse files
Home.py
CHANGED
@@ -18,9 +18,9 @@ def load_essential_models(scaler_6_path, scaler_8_path, scaler_full_path, clf_6_
|
|
18 |
return scaler_6, scaler_8, scaler_21, clf_6, clf_8, clf_21
|
19 |
|
20 |
def convert_prediction(prediction):
|
21 |
-
if prediction == [0]:
|
22 |
return 'S'
|
23 |
-
elif prediction == [1]:
|
24 |
return 'M'
|
25 |
else:
|
26 |
return 'L'
|
|
|
18 |
return scaler_6, scaler_8, scaler_21, clf_6, clf_8, clf_21
|
19 |
|
20 |
def convert_prediction(prediction):
|
21 |
+
if (prediction[0] == [0]):
|
22 |
return 'S'
|
23 |
+
elif (prediction[0] == [1]):
|
24 |
return 'M'
|
25 |
else:
|
26 |
return 'L'
|