Update app.py
Browse files
app.py
CHANGED
|
@@ -79,36 +79,6 @@ with gr.Blocks(title=title) as demo:
|
|
| 79 |
Education = education_d[gr.Dropdown([1,2,3,4,5,6],label="Education Level")]
|
| 80 |
Income = income_d[gr.Dropdown([1,2,3,4,5,6,7,8],label="Income Level")]
|
| 81 |
submit_btn = gr.Button("Analyze")
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
#draft
|
| 85 |
-
HighChol = gr.Slider(label="chol Score", minimum=0, maximum=1, value=0, step=1)
|
| 86 |
-
CholCheck = gr.Slider(label="chol check Score", minimum=0, maximum=1, value=0, step=1)
|
| 87 |
-
BMI = gr.Slider(label="bmi Score", minimum=12, maximum=98, value=49, step=1)
|
| 88 |
-
Smoker = gr.Slider(label="smoker Score", minimum=0, maximum=1, value=0, step=1)
|
| 89 |
-
Stroke = gr.Slider(label="stroke Score", minimum=0, maximum=1, value=0, step=1)
|
| 90 |
-
HeartDiseaseorAttack = gr.Slider(label="diseases or attack Score", minimum=0, maximum=1, value=0, step=1)
|
| 91 |
-
PhysActivity = gr.Slider(label="phys activity Score", minimum=0, maximum=1, value=0, step=1)
|
| 92 |
-
Fruits = gr.Slider(label="fruits Score", minimum=0, maximum=1, value=0, step=1)
|
| 93 |
-
Veggies = gr.Slider(label="veggies Score", minimum=0, maximum=1, value=0, step=1)
|
| 94 |
-
HvyAlcoholConsump = gr.Slider(label="alcohol consump Score", minimum=0, maximum=1, value=0, step=1)
|
| 95 |
-
AnyHealthcare = gr.Slider(label="any healthcare Score", minimum=0, maximum=1, value=0, step=1)
|
| 96 |
-
NoDocbcCost = gr.Slider(label="no doc seen because of cost Score", minimum=0, maximum=1, value=0, step=1)
|
| 97 |
-
GenHlth = gr.Slider(label="gen health Score", minimum=1, maximum=5, value=3, step=1)
|
| 98 |
-
MentHlth = gr.Slider(label="mental health Score", minimum=0, maximum=30, value=15, step=1)
|
| 99 |
-
PhysHlth = gr.Slider(label="physical health consump Score", minimum=0, maximum=30, value=15, step=1)
|
| 100 |
-
DiffWalk = gr.Slider(label="diff walk Score", minimum=0, maximum=1, value=0, step=1)
|
| 101 |
-
Sex = gr.Slider(label="sex Score", minimum=0, maximum=1, value=0, step=1)
|
| 102 |
-
Age = age_d[gr.Dropdown([1,2,3,4,5,6,7,8,9,10,11,12,13],label="Age")]
|
| 103 |
-
Education = education_d[gr.Dropdown([1,2,3,4,5,6],label="Education Level")]
|
| 104 |
-
Income = education_d[gr.Dropdown([1,2,3,4,5,6],label="Education Level")]
|
| 105 |
-
# Age = age_d[gr.Dropdown(["young","genz"],label="age Score")]
|
| 106 |
-
# Age = gr.Slider(label="age Score", minimum=1, maximum=13, value=7, step=1)
|
| 107 |
-
|
| 108 |
-
#Education = gr. Dropdown (["Never attended school or only kindergarten", "Grades 1 through 8 (Elementary)", "Grades 9 through 11 (Some high school)", "Grade 12 or GED (High school graduate)", "College 1 year to 3 years (Some college or technical school)", "College 4 years or more (College graduate)"], label = "Education level", type = "index")
|
| 109 |
-
Education = gr.Slider(label="education Score", minimum=1, maximum=6, value=3, step=1)
|
| 110 |
-
Income = gr.Slider(label="income Score", minimum=1, maximum=8, value=4, step=1)
|
| 111 |
-
submit_btn = gr.Button("Analyze")
|
| 112 |
|
| 113 |
with gr.Column(visible=True) as output_col:
|
| 114 |
label = gr.Label(label = "Predicted Label")
|
|
|
|
| 79 |
Education = education_d[gr.Dropdown([1,2,3,4,5,6],label="Education Level")]
|
| 80 |
Income = income_d[gr.Dropdown([1,2,3,4,5,6,7,8],label="Income Level")]
|
| 81 |
submit_btn = gr.Button("Analyze")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
with gr.Column(visible=True) as output_col:
|
| 84 |
label = gr.Label(label = "Predicted Label")
|