Spaces:
Runtime error
Runtime error
version 1.0.1
Browse filesUpdated the minimum age for the patient to adult
app.py
CHANGED
@@ -84,7 +84,7 @@ def predict(age, female, race, elective, aweekend, zipinc_qrtl, hosp_region, hos
|
|
84 |
'Predicting Death Outcome:': pred['Label'][0]}
|
85 |
|
86 |
# Defining the containers for each input
|
87 |
-
age = gr.inputs.Slider(minimum=
|
88 |
female = gr.inputs.Dropdown(choices=["Female", "Male"],label = 'Sex')
|
89 |
race = gr.inputs.Dropdown(choices=['Asian or Pacific Islander', 'Black', 'Hispanic', 'Native American', 'White', 'Other'], label = 'Race')
|
90 |
elective = gr.inputs.Radio(choices=['Elective', 'NonElective'], label = 'Elective')
|
|
|
84 |
'Predicting Death Outcome:': pred['Label'][0]}
|
85 |
|
86 |
# Defining the containers for each input
|
87 |
+
age = gr.inputs.Slider(minimum=18, maximum=100, default=60, label="Age")
|
88 |
female = gr.inputs.Dropdown(choices=["Female", "Male"],label = 'Sex')
|
89 |
race = gr.inputs.Dropdown(choices=['Asian or Pacific Islander', 'Black', 'Hispanic', 'Native American', 'White', 'Other'], label = 'Race')
|
90 |
elective = gr.inputs.Radio(choices=['Elective', 'NonElective'], label = 'Elective')
|