tby4rr commited on
Commit
9a24479
·
verified ·
1 Parent(s): 5dd48ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -4
app.py CHANGED
@@ -75,10 +75,21 @@ with gr.Blocks(title=title) as demo:
75
  PhysHlth = gr.Slider(label="How many days was your physical health not good in the past 30 days? This includes physical illness and injuries.", minimum=0, maximum=30, value=15, step=1)
76
  DiffWalk = gr.Radio(["No", "Yes"], label = "Do you have serious difficulty walking or climbing stairs?", type = "index")
77
  Sex = gr.Radio(["Male", "Female"], label = "Sex?", type = "index")
78
- Age = age_d[gr.Dropdown(["18-24","25-29","30-34","35-39","40-44","45-49","50-54","55-59","60-64","65-69","70-74","75-79","80 and older"],label="Age")]
79
- Education = education_d[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 graduated)"],label="Education Level")]
80
- Income = income_d[gr.Dropdown(["Less than $10,000","Less than $16,250","Less than $22,500","Less than $28,750","Less than $35,000","Less than $48,500","Less than $61,500","$75,000 or more"],label="Income Level")]
81
- submit_btn = gr.Button("Analyze")
 
 
 
 
 
 
 
 
 
 
 
82
 
83
  #Age = age_d[gr.Dropdown([1,2,3,4,5,6,7,8,9,10,11,12,13],label="Age",type = "index")]
84
  #Education = education_d[gr.Dropdown([1,2,3,4,5,6],label="Education Level",type = "index")]
 
75
  PhysHlth = gr.Slider(label="How many days was your physical health not good in the past 30 days? This includes physical illness and injuries.", minimum=0, maximum=30, value=15, step=1)
76
  DiffWalk = gr.Radio(["No", "Yes"], label = "Do you have serious difficulty walking or climbing stairs?", type = "index")
77
  Sex = gr.Radio(["Male", "Female"], label = "Sex?", type = "index")
78
+
79
+ Age_dropdown = gr.Dropdown(["18-24", "25-29", "30-34", "35-39", "40-44", "45-49", "50-54", "55-59", "60-64", "65-69", "70-74", "75-79", "80 and older"], label="Age")
80
+ Age = gr.Input(component=Age_dropdown, type="index")
81
+
82
+ Education_dropdown = 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 graduated)"], label="Education Level")
83
+ Education = gr.Input(component=Education_dropdown, type="index")
84
+
85
+ Income_dropdown = gr.Dropdown(["Less than $10,000", "Less than $16,250", "Less than $22,500", "Less than $28,750", "Less than $35,000", "Less than $48,500", "Less than $61,500", "$75,000 or more"], label="Income Level")
86
+ Income = gr.Input(component=Income_dropdown, type="index")
87
+
88
+
89
+ #Age = age_d[gr.Dropdown(["18-24","25-29","30-34","35-39","40-44","45-49","50-54","55-59","60-64","65-69","70-74","75-79","80 and older"],label="Age")]
90
+ #Education = education_d[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 graduated)"],label="Education Level")]
91
+ #Income = income_d[gr.Dropdown(["Less than $10,000","Less than $16,250","Less than $22,500","Less than $28,750","Less than $35,000","Less than $48,500","Less than $61,500","$75,000 or more"],label="Income Level")]
92
+ #submit_btn = gr.Button("Analyze")
93
 
94
  #Age = age_d[gr.Dropdown([1,2,3,4,5,6,7,8,9,10,11,12,13],label="Age",type = "index")]
95
  #Education = education_d[gr.Dropdown([1,2,3,4,5,6],label="Education Level",type = "index")]