Spaces:
Sleeping
Sleeping
huahualuya
commited on
Commit
•
e181517
1
Parent(s):
f43ceb2
Update app.py
Browse files
app.py
CHANGED
@@ -8,25 +8,25 @@ heart=pd.read_csv('heart.dat', header=None, sep=' ', names=['age', 'sex', 'cp',
|
|
8 |
'oldpeak', 'slope', 'ca', 'thal', 'heart disease'])
|
9 |
|
10 |
# load the saved models
|
11 |
-
with open('
|
12 |
tree_model = pickle.load(f)
|
13 |
|
14 |
-
with open('
|
15 |
svm_model = pickle.load(f)
|
16 |
|
17 |
-
with open('
|
18 |
qda_model = pickle.load(f)
|
19 |
|
20 |
-
with open('
|
21 |
mlp_model = pickle.load(f)
|
22 |
|
23 |
-
with open('
|
24 |
log_model = pickle.load(f)
|
25 |
|
26 |
-
with open('
|
27 |
lda_model = pickle.load(f)
|
28 |
|
29 |
-
with open('
|
30 |
for_model = pickle.load(f)
|
31 |
|
32 |
# Define the function to make predictions
|
|
|
8 |
'oldpeak', 'slope', 'ca', 'thal', 'heart disease'])
|
9 |
|
10 |
# load the saved models
|
11 |
+
with open('Tree.pkl', 'rb') as f:
|
12 |
tree_model = pickle.load(f)
|
13 |
|
14 |
+
with open('svm.pkl', 'rb') as f:
|
15 |
svm_model = pickle.load(f)
|
16 |
|
17 |
+
with open('QDA.pkl', 'rb') as f:
|
18 |
qda_model = pickle.load(f)
|
19 |
|
20 |
+
with open('MLP.pkl', 'rb') as f:
|
21 |
mlp_model = pickle.load(f)
|
22 |
|
23 |
+
with open('Log.pkl', 'rb') as f:
|
24 |
log_model = pickle.load(f)
|
25 |
|
26 |
+
with open('LDA.pkl', 'rb') as f:
|
27 |
lda_model = pickle.load(f)
|
28 |
|
29 |
+
with open('For.pkl', 'rb') as f:
|
30 |
for_model = pickle.load(f)
|
31 |
|
32 |
# Define the function to make predictions
|