Puree commited on
Commit
6575ef2
1 Parent(s): c5f6711

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -20,7 +20,6 @@ unique_ever_married = unique_values["ever_married"]
20
  unique_residence_type = unique_values["Residence_type"]
21
  unique_smoking_status = unique_values["smoking_status"]
22
  unique_work_type = unique_values["work_type"]
23
- unique_stroke = unique_values["stroke"]
24
 
25
  def main():
26
  st.title("Brain stroke predict")
@@ -33,7 +32,6 @@ def main():
33
  residence_type = st.selectbox("Residence",options = unique_residence_type)
34
  smoking_status = st.selectbox("Smoke",options = unique_smoking_status)
35
  work_type = st.selectbox("Work type",options = unique_work_type)
36
- stroke = st.selectbox("Stroke",options = unique_stroke)
37
  avg_glucose_level = st.slider("Average glucose level",min_value=40, max_value=300)
38
  bmi = st.slider("BMI(Body mass index )",min_value=12, max_value=50)
39
  # clicked==True only when the button is clicked
@@ -46,8 +44,7 @@ def main():
46
  "ever_married": [ ever_married],
47
  "residence_type": [residence_type],
48
  "smoking_status": [smoking_status],
49
- "work_type": [work_type],
50
- "stroke": [stroke],
51
  "avg_glucose_level": [avg_glucose_level],
52
  "bmi": [bmi]}))
53
  # Show prediction
 
20
  unique_residence_type = unique_values["Residence_type"]
21
  unique_smoking_status = unique_values["smoking_status"]
22
  unique_work_type = unique_values["work_type"]
 
23
 
24
  def main():
25
  st.title("Brain stroke predict")
 
32
  residence_type = st.selectbox("Residence",options = unique_residence_type)
33
  smoking_status = st.selectbox("Smoke",options = unique_smoking_status)
34
  work_type = st.selectbox("Work type",options = unique_work_type)
 
35
  avg_glucose_level = st.slider("Average glucose level",min_value=40, max_value=300)
36
  bmi = st.slider("BMI(Body mass index )",min_value=12, max_value=50)
37
  # clicked==True only when the button is clicked
 
44
  "ever_married": [ ever_married],
45
  "residence_type": [residence_type],
46
  "smoking_status": [smoking_status],
47
+ "work_type": [work_type],
 
48
  "avg_glucose_level": [avg_glucose_level],
49
  "bmi": [bmi]}))
50
  # Show prediction