santarabantoosoo commited on
Commit
6198d18
1 Parent(s): dc496bc

modified app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,7 +90,7 @@ def relapse(age_group, stage):
90
 
91
  X_test_radio = pd.DataFrame.from_dict(
92
  {
93
- "age_group": ["<=15" if age_group == "<=15" else ">15"],
94
  'radio': ["Yes"],
95
  'stage_encoded' : get_encoding(stage)
96
 
@@ -99,7 +99,7 @@ def relapse(age_group, stage):
99
 
100
  X_test_no_radio = pd.DataFrame.from_dict(
101
  {
102
- "age_group": ["<=15" if age_group == "Age <=15" else ">15"],
103
  'radio': ["No"],
104
  'stage_encoded' : get_encoding(stage)
105
 
@@ -139,4 +139,4 @@ iface = gr.Interface(
139
  interpretation="default",
140
  )
141
 
142
- iface.launch()
 
90
 
91
  X_test_radio = pd.DataFrame.from_dict(
92
  {
93
+ "age_group": ["<=15" if age_group else ">15"],
94
  'radio': ["Yes"],
95
  'stage_encoded' : get_encoding(stage)
96
 
 
99
 
100
  X_test_no_radio = pd.DataFrame.from_dict(
101
  {
102
+ "age_group": ["<=15" if age_group else ">15"],
103
  'radio': ["No"],
104
  'stage_encoded' : get_encoding(stage)
105
 
 
139
  interpretation="default",
140
  )
141
 
142
+ iface.launch()