FranciscoLozDataScience commited on
Commit
dd96861
·
verified ·
1 Parent(s): 3f70783

Update app.py

Browse files

wrong type should be radio

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,8 +43,8 @@ def load_interface():
43
  waist = gr.Number(label="Waist(cm)", minimum=0, info="Waist circumference length")
44
  eye_L = gr.Number(label="Visual acuity of the left eye, measured in diopters (D)", minimum=0)
45
  eye_R = gr.Number(label="Visual acuity of the right eye, measured in diopters (D)", minimum=0)
46
- hear_L = gr.Choice(label="Is there any hearing ability in the left ear?",choices=[("Yes",1),("No",2)])
47
- hear_R = gr.Choice(label="Is there any hearing ability in the right ear?",choices=[("Yes",1),("No",2)])
48
  systolic = gr.Number(label="Systolic(mmHg)", precision=0, minimum=0, info="Blood Pressure")
49
  relaxation = gr.Number(label="Relaxation(mmHg)", precision=0, minimum=0, info="Blood Pressure")
50
  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")
 
43
  waist = gr.Number(label="Waist(cm)", minimum=0, info="Waist circumference length")
44
  eye_L = gr.Number(label="Visual acuity of the left eye, measured in diopters (D)", minimum=0)
45
  eye_R = gr.Number(label="Visual acuity of the right eye, measured in diopters (D)", minimum=0)
46
+ hear_L = gr.Radio(label="Is there any hearing ability in the left ear?",choices=[("Yes",1),("No",2)])
47
+ hear_R = gr.Radio(label="Is there any hearing ability in the right ear?",choices=[("Yes",1),("No",2)])
48
  systolic = gr.Number(label="Systolic(mmHg)", precision=0, minimum=0, info="Blood Pressure")
49
  relaxation = gr.Number(label="Relaxation(mmHg)", precision=0, minimum=0, info="Blood Pressure")
50
  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")