fmegahed commited on
Commit
a704d97
·
verified ·
1 Parent(s): 64a8a12

Updated the default argument to value

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -83,7 +83,7 @@ def predict(age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hos
83
  'Predicting Death Outcome:': pred['Label'][0]}
84
 
85
  # Defining the containers for each input
86
- age = gr.Slider(minimum=18, maximum=100, default=60, label="Age")
87
  female = gr.Dropdown(choices=["Female", "Male"],label = 'Sex')
88
  race = gr.Dropdown(choices=['Asian or Pacific Islander', 'Black', 'Hispanic', 'Native American', 'White', 'Other'], label = 'Race')
89
  elective = gr.Radio(choices=['Elective', 'NonElective'], label = 'Elective')
@@ -127,7 +127,7 @@ smoker = gr.Radio(choices=["No", "Yes"], label = 'Smoker')
127
  valvular_disease = gr.Radio(choices=["No", "Yes"], label = 'Valvular Disease')
128
  weight_loss = gr.Radio(choices=["No", "Yes"], label = 'Weight Loss')
129
  endovascular_tavr = gr.Radio(choices=["No", "Yes"], label = 'Endovascular TAVR')
130
- transapical_tavr = gr.Radio(choices=["No", "Yes"], label = 'Transapical TAVR', default= 'Yes')
131
 
132
 
133
  # Defining and launching the interface
 
83
  'Predicting Death Outcome:': pred['Label'][0]}
84
 
85
  # Defining the containers for each input
86
+ age = gr.Slider(minimum=18, maximum=100, value=60, label="Age")
87
  female = gr.Dropdown(choices=["Female", "Male"],label = 'Sex')
88
  race = gr.Dropdown(choices=['Asian or Pacific Islander', 'Black', 'Hispanic', 'Native American', 'White', 'Other'], label = 'Race')
89
  elective = gr.Radio(choices=['Elective', 'NonElective'], label = 'Elective')
 
127
  valvular_disease = gr.Radio(choices=["No", "Yes"], label = 'Valvular Disease')
128
  weight_loss = gr.Radio(choices=["No", "Yes"], label = 'Weight Loss')
129
  endovascular_tavr = gr.Radio(choices=["No", "Yes"], label = 'Endovascular TAVR')
130
+ transapical_tavr = gr.Radio(choices=["No", "Yes"], label = 'Transapical TAVR', value= 'Yes')
131
 
132
 
133
  # Defining and launching the interface