Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,8 +33,8 @@ def main_func(SEQN, RIDAGEYR, RIAGENDR, PAQ605, BMXBMI, LBXGLU, DIQ010, LBXGLT,L
|
|
33 |
return {"Low Chance": float(prob[0][0]), "High Chance": 1-float(prob[0][0])}, local_plot
|
34 |
|
35 |
# Create the UI
|
36 |
-
title = "**
|
37 |
-
description1 = """This app takes info from subjects and predicts their
|
38 |
|
39 |
description2 = """
|
40 |
To use the app, click on one of the examples, or adjust the values of the factors, and click on Analyze. π€
|
@@ -68,7 +68,7 @@ with gr.Blocks(title=title) as demo:
|
|
68 |
submit_btn.click(
|
69 |
main_func,
|
70 |
[SEQN, RIDAGEYR, RIAGENDR, PAQ605, BMXBMI, LBXGLU, DIQ010, LBXGLT,LBXIN],
|
71 |
-
[label,local_plot], api_name="
|
72 |
)
|
73 |
|
74 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
|
|
33 |
return {"Low Chance": float(prob[0][0]), "High Chance": 1-float(prob[0][0])}, local_plot
|
34 |
|
35 |
# Create the UI
|
36 |
+
title = "**National Health and Nutritional Health Assessment** πͺ"
|
37 |
+
description1 = """This app takes info from subjects of various health and nutritional status and predicts their age. Do not use for medical diagnosis."""
|
38 |
|
39 |
description2 = """
|
40 |
To use the app, click on one of the examples, or adjust the values of the factors, and click on Analyze. π€
|
|
|
68 |
submit_btn.click(
|
69 |
main_func,
|
70 |
[SEQN, RIDAGEYR, RIAGENDR, PAQ605, BMXBMI, LBXGLU, DIQ010, LBXGLT,LBXIN],
|
71 |
+
[label,local_plot], api_name="Age_Predictor"
|
72 |
)
|
73 |
|
74 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|