JadAssaf
commited on
Commit
·
59acec4
1
Parent(s):
7b12580
Update app.py
Browse files
app.py
CHANGED
@@ -10,22 +10,22 @@ file_name = 'TSPI_model_joblib.sav'
|
|
10 |
model = joblib.load(file_name)
|
11 |
|
12 |
|
13 |
-
def STPI(t_1_MaxValue,t_2_MaxValue,
|
14 |
# Acc_0_5__1_0_MaxValue,
|
15 |
Abs_Diff_t_1_MaxValue,Abs_Diff_t_2_MaxValue,Abs_Diff_t_4_MaxValue):
|
16 |
print('------------------')
|
17 |
|
18 |
-
X = [t_1_MaxValue,t_2_MaxValue,
|
19 |
# Acc_0_5__1_0_MaxValue,
|
20 |
Abs_Diff_t_1_MaxValue,Abs_Diff_t_2_MaxValue,Abs_Diff_t_4_MaxValue]
|
21 |
print(X)
|
22 |
-
outcome_decoded = ['Normal'
|
23 |
file_object = open('stpi_data.txt', 'a')
|
24 |
file_object.write(str(t_1_MaxValue))
|
25 |
file_object.write(';')
|
26 |
file_object.write(str(t_2_MaxValue))
|
27 |
file_object.write(';')
|
28 |
-
file_object.write(str(
|
29 |
file_object.write(';')
|
30 |
# file_object.write(str(Acc_0_5__1_0_MaxValue))
|
31 |
# file_object.write(';')
|
|
|
10 |
model = joblib.load(file_name)
|
11 |
|
12 |
|
13 |
+
def STPI(t_1_MaxValue,t_2_MaxValue,t_4_MaxValue,
|
14 |
# Acc_0_5__1_0_MaxValue,
|
15 |
Abs_Diff_t_1_MaxValue,Abs_Diff_t_2_MaxValue,Abs_Diff_t_4_MaxValue):
|
16 |
print('------------------')
|
17 |
|
18 |
+
X = [t_1_MaxValue,t_2_MaxValue,t_4_MaxValue,
|
19 |
# Acc_0_5__1_0_MaxValue,
|
20 |
Abs_Diff_t_1_MaxValue,Abs_Diff_t_2_MaxValue,Abs_Diff_t_4_MaxValue]
|
21 |
print(X)
|
22 |
+
outcome_decoded = ['Normal',,'Suspect','Keratoconic']
|
23 |
file_object = open('stpi_data.txt', 'a')
|
24 |
file_object.write(str(t_1_MaxValue))
|
25 |
file_object.write(';')
|
26 |
file_object.write(str(t_2_MaxValue))
|
27 |
file_object.write(';')
|
28 |
+
file_object.write(str(t_4_MaxValue))
|
29 |
file_object.write(';')
|
30 |
# file_object.write(str(Acc_0_5__1_0_MaxValue))
|
31 |
# file_object.write(';')
|