Commit
·
6e1aea4
1
Parent(s):
3291fa0
set inputs in rows of 3
Browse files
app.py
CHANGED
@@ -49,29 +49,35 @@ def load_interface():
|
|
49 |
Enter sample bio data to predict smoking status.
|
50 |
""")
|
51 |
|
52 |
-
#set inputs
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
dental_caries = gr.Radio(label="Are there any signs of dental cavities?",choices=[("Yes",1),("No",0)])
|
76 |
|
77 |
#set button row
|
|
|
49 |
Enter sample bio data to predict smoking status.
|
50 |
""")
|
51 |
|
52 |
+
#set inputs in rows of 3
|
53 |
+
with gr.Row():
|
54 |
+
age = gr.Number(label="Age", precision=0, minimum=0)
|
55 |
+
height = gr.Number(label="Height(cm)", precision=0, minimum=0)
|
56 |
+
weight = gr.Number(label="Weight(kg)", precision=0, minimum=0)
|
57 |
+
with gr.Row():
|
58 |
+
waist = gr.Number(label="Waist(cm)", minimum=0, info="Waist circumference length")
|
59 |
+
eye_L = gr.Number(label="Visual acuity of the left eye, measured in diopters (D)", minimum=0)
|
60 |
+
eye_R = gr.Number(label="Visual acuity of the right eye, measured in diopters (D)", minimum=0)
|
61 |
+
with gr.Row():
|
62 |
+
hear_L = gr.Radio(label="Is there any hearing ability in the left ear?",choices=[("Yes",1),("No",2)])
|
63 |
+
hear_R = gr.Radio(label="Is there any hearing ability in the right ear?",choices=[("Yes",1),("No",2)])
|
64 |
+
systolic = gr.Number(label="Systolic(mmHg)", precision=0, minimum=0, info="Blood Pressure")
|
65 |
+
with gr.Row():
|
66 |
+
relaxation = gr.Number(label="Relaxation(mmHg)", precision=0, minimum=0, info="Blood Pressure")
|
67 |
+
fasting_blood_sugar = gr.Number(label="Fasting Blood Sugar(mg/dL)", precision=0, minimum=0, info="the concentration of glucose (sugar) in the bloodstream after an extended period of fasting")
|
68 |
+
cholesterol = gr.Number(label="Total Cholesterol(mg/dL)", precision=0, minimum=0, info="Total amount of cholesterol present in the blood")
|
69 |
+
with gr.Row():
|
70 |
+
triglyceride = gr.Number(label="Triglyceride(mg/dL)", precision=0, minimum=0, info="A type of fat (lipid) found in blood")
|
71 |
+
HDL = gr.Number(label="High-Density Lipoprotein(mg/dL) ", precision=0, minimum=0, info="It is commonly referred to as 'good cholesterol'")
|
72 |
+
LDL = gr.Number(label="Low-Density Lipoprotein(mg/dL) ", precision=0, minimum=0, info="It is commonly referred to as 'bad cholesterol'")
|
73 |
+
with gr.Row():
|
74 |
+
hemoglobin = gr.Number(label="Hemoglobin(g/dL)", minimum=0, info="a protein found in red blood cells that is responsible for carrying oxygen from the lungs to the tissues and organs of the body")
|
75 |
+
urine_protein = gr.Radio(label="Does urine contain excessive traces of protein?",choices=[("Yes",2),("No",1)], info="when excessive protein is detected in the urine, it may indicate a problem with kidney function or other underlying health conditions.")
|
76 |
+
serum_creatinine = gr.Number(label="Serum creatinine(mg/dL)", minimum=0, info="Serum creatinine levels are commonly measured through a blood test and are used to assess kidney function")
|
77 |
+
with gr.Row():
|
78 |
+
AST = gr.Number(label="Aspartate Aminotransferase(IU/L)", precision=0, minimum=0, info="glutamic oxaloacetic transaminase type; AST is released into the bloodstream when cells are damaged or destroyed, such as during injury or disease affecting organs rich in AST.")
|
79 |
+
ALT = gr.Number(label="Alanine Aminotransferase(IU/L)", precision=0, minimum=0, info="glutamic oxaloacetic transaminase type; ALT is primarily found in the liver cells, and increased levels of ALT in the blood can indicate liver damage or disease")
|
80 |
+
Gtp = gr.Number(label="Gamma-glutamyl Transferase(IU/L)", precision=0, minimum=0, info="Elevated levels of GGT in the blood can indicate liver disease or bile duct obstruction. GGT levels are often measured alongside other liver function tests to assess liver health and function.")
|
81 |
dental_caries = gr.Radio(label="Are there any signs of dental cavities?",choices=[("Yes",1),("No",0)])
|
82 |
|
83 |
#set button row
|