Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ unique_gender = unique_values["gender"]
|
|
9 |
unique_hypertension = unique_values["hypertension"]
|
10 |
unique_heart_disease = unique_values["heart_disease"]
|
11 |
unique_work_type = unique_values["work_type"]
|
12 |
-
unique_residence_type = unique_values["Residence_type"]
|
13 |
unique_smoking_status = unique_values["smoking_status"]
|
14 |
|
15 |
def main():
|
@@ -21,7 +20,6 @@ def main():
|
|
21 |
hypertension = st.selectbox("Hypertension", options=unique_hypertension)
|
22 |
heart_disease = st.selectbox("Heart_Disease", options=unique_heart_disease)
|
23 |
work_type = st.selectbox("Work_type", options=unique_work_type)
|
24 |
-
Residence_type = st.selectbox("Residence_type", options=unique_residence_type)
|
25 |
glucose_level = st.slider("Glucose_Level", min_value=0, max_value=300)
|
26 |
bmi = st.slider("BMI", min_value=0, max_value=50)
|
27 |
smoking = st.selectbox("Smoking", options=unique_smoking_status)
|
@@ -34,7 +32,6 @@ def main():
|
|
34 |
"hypertension": [hypertension],
|
35 |
"heart_disease": [heart_disease],
|
36 |
"work_type": [work_type],
|
37 |
-
"Resident_type": [Residence_type],
|
38 |
"avg_glucose_level": [glucose_level],
|
39 |
"bmi": [bmi],
|
40 |
"smoking_status": [smoking]}))
|
|
|
9 |
unique_hypertension = unique_values["hypertension"]
|
10 |
unique_heart_disease = unique_values["heart_disease"]
|
11 |
unique_work_type = unique_values["work_type"]
|
|
|
12 |
unique_smoking_status = unique_values["smoking_status"]
|
13 |
|
14 |
def main():
|
|
|
20 |
hypertension = st.selectbox("Hypertension", options=unique_hypertension)
|
21 |
heart_disease = st.selectbox("Heart_Disease", options=unique_heart_disease)
|
22 |
work_type = st.selectbox("Work_type", options=unique_work_type)
|
|
|
23 |
glucose_level = st.slider("Glucose_Level", min_value=0, max_value=300)
|
24 |
bmi = st.slider("BMI", min_value=0, max_value=50)
|
25 |
smoking = st.selectbox("Smoking", options=unique_smoking_status)
|
|
|
32 |
"hypertension": [hypertension],
|
33 |
"heart_disease": [heart_disease],
|
34 |
"work_type": [work_type],
|
|
|
35 |
"avg_glucose_level": [glucose_level],
|
36 |
"bmi": [bmi],
|
37 |
"smoking_status": [smoking]}))
|