JadAssaf commited on
Commit
028ab22
1 Parent(s): 630cee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,10 +32,10 @@ def STPI(t_0_5_MaxValue,t_1_0_MaxValue,t_2_0_MaxValue,Acc_0_5__1_0_MaxValue,Abs_
32
  if result_2way == 0:
33
  result_3way = loaded_rf_3way.predict([X])
34
  print('The patient is ', outcome_decoded[int(result_3way)], 'through the 3way method')
35
- return "The patient is " + outcome_decoded[int(result_3way)] + " through the 3way method and is " + outcome_decoded[int(result_2way)] + "through the 2way method"
36
 
37
 
38
- return "The patient is " + outcome_decoded[int(result_2way)] + " through the 2way method"
39
 
40
  iface = gr.Interface(fn=STPI,
41
  title='STPI Calculator',
 
32
  if result_2way == 0:
33
  result_3way = loaded_rf_3way.predict([X])
34
  print('The patient is ', outcome_decoded[int(result_3way)], 'through the 3way method')
35
+ return "The patient is " + outcome_decoded[int(result_3way)] + " using the 3way method and is " + outcome_decoded[int(result_2way)] + "through the 2way method"
36
 
37
 
38
+ return "The patient is " + outcome_decoded[int(result_2way)] + " using the 2way method"
39
 
40
  iface = gr.Interface(fn=STPI,
41
  title='STPI Calculator',