Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,18 +17,18 @@ def main():
|
|
17 |
st.title("Predict death rates from heart failure")
|
18 |
|
19 |
with st.form("questionaire"):
|
20 |
-
age = st.slider("Age", min_value=
|
21 |
anaemia = st.selectbox("anaemia", options= unique_anaemia)
|
22 |
-
creatinine_phosphokinase = st.slider("creatinine_phosphokinase (mcg/L)", min_value=0, max_value=
|
23 |
diabetes = st.selectbox("diabetes", options=unique_diabetes)
|
24 |
ejection_fraction = st.slider("ejection_fraction (percentage)", min_value=0, max_value=100)
|
25 |
high_blood_pressure = st.selectbox("high_blood_pressure", options= unique_high_blood_pressure)
|
26 |
platelets = st.slider("platelets (kiloplatelets/mL)", min_value=20000, max_value=900000)
|
27 |
-
serum_creatinine = st.slider("serum_creatinine (mg/dL)", min_value=0, max_value=3)
|
28 |
-
serum_sodium = st.slider("serum_sodium (mEq/L)", min_value=
|
29 |
sex = st.selectbox("sex", options= unique_sex)
|
30 |
smoking = st.selectbox("smoking",options= unique_smoking)
|
31 |
-
time= st.slider("time", min_value=0, max_value=
|
32 |
|
33 |
# clicked==True only when the button is clicked
|
34 |
clicked = st.form_submit_button("Predict death rates")
|
|
|
17 |
st.title("Predict death rates from heart failure")
|
18 |
|
19 |
with st.form("questionaire"):
|
20 |
+
age = st.slider("Age", min_value=10, max_value=100)
|
21 |
anaemia = st.selectbox("anaemia", options= unique_anaemia)
|
22 |
+
creatinine_phosphokinase = st.slider("creatinine_phosphokinase (mcg/L)", min_value=0, max_value=8000)
|
23 |
diabetes = st.selectbox("diabetes", options=unique_diabetes)
|
24 |
ejection_fraction = st.slider("ejection_fraction (percentage)", min_value=0, max_value=100)
|
25 |
high_blood_pressure = st.selectbox("high_blood_pressure", options= unique_high_blood_pressure)
|
26 |
platelets = st.slider("platelets (kiloplatelets/mL)", min_value=20000, max_value=900000)
|
27 |
+
serum_creatinine = st.slider("serum_creatinine (mg/dL)", min_value=0, max_value=3, step=float)
|
28 |
+
serum_sodium = st.slider("serum_sodium (mEq/L)", min_value=100, max_value=200)
|
29 |
sex = st.selectbox("sex", options= unique_sex)
|
30 |
smoking = st.selectbox("smoking",options= unique_smoking)
|
31 |
+
time= st.slider("time", min_value=0, max_value=300)
|
32 |
|
33 |
# clicked==True only when the button is clicked
|
34 |
clicked = st.form_submit_button("Predict death rates")
|