Update app.py
Browse files
app.py
CHANGED
@@ -118,8 +118,12 @@ with gr.Blocks(title=title) as demo:
|
|
118 |
submit_btn.click(
|
119 |
main_func,
|
120 |
[HighBP, HighChol, CholCheck, BMI, Smoker, Stroke, HeartDiseaseorAttack, PhysActivity, Fruits, Veggies, HvyAlcoholConsump, AnyHealthcare, NoDocbcCost, GenHlth, MentHlth, PhysHlth, DiffWalk, Sex, Age, Education, Income],
|
121 |
-
label,
|
122 |
)
|
123 |
|
|
|
|
|
|
|
|
|
124 |
demo.launch()
|
125 |
|
|
|
118 |
submit_btn.click(
|
119 |
main_func,
|
120 |
[HighBP, HighChol, CholCheck, BMI, Smoker, Stroke, HeartDiseaseorAttack, PhysActivity, Fruits, Veggies, HvyAlcoholConsump, AnyHealthcare, NoDocbcCost, GenHlth, MentHlth, PhysHlth, DiffWalk, Sex, Age, Education, Income],
|
121 |
+
[label,local_plot],api_name="Diabetes_Predictor"
|
122 |
)
|
123 |
|
124 |
+
gr.Markdown("### Click on any of the examples below to see how it works:")
|
125 |
+
gr.Examples([[0,0,1,0,22,0,0,0,1,1,1,0,0,1,3,25,23,1,1,21,5,3], [1,1,1,1,30,1,1,1,0,0,0,1,1,0,2,20,23,0,0,21,3,2]], [HighBP, HighChol, CholCheck, BMI, Smoker, Stroke, HeartDiseaseorAttack, PhysActivity, Fruits, Veggies, HvyAlcoholConsump, AnyHealthcare, NoDocbcCost, GenHlth, MentHlth, PhysHlth, DiffWalk, Sex, Age, Education, Income], [label,local_plot], main_func, cache_examples=True)
|
126 |
+
|
127 |
+
|
128 |
demo.launch()
|
129 |
|