Spaces:
Build error
Build error
Commit
·
a010364
1
Parent(s):
08d2950
Update app.py
Browse files
app.py
CHANGED
@@ -50,19 +50,19 @@ with gr.Blocks(title=title) as demo:
|
|
50 |
|
51 |
age = gr.Number(label="age Score", value=80)
|
52 |
sex = gr.Radio(["Male", "Female"], label="Gender", type = "index", info = "What is your gender?")
|
53 |
-
cp = gr.Radio([0,1,2,3
|
54 |
trtbps = gr.Number(label="Resting Blood Pressure", info = "What is your resting blood pressure?", minimum=1, maximum=200, value=4)
|
55 |
chol = gr.Slider(label="Cholesterol", info="What is your Cholesterol level?", minimum=1, maximum=570, value=4, step=1)
|
56 |
fbs = gr.Radio([1, 2, 3, 4, 5], label="Blood Sugar", info="Do you have high blood sugar? [1: Low, 5: Very High]")
|
57 |
|
58 |
restecg = gr.Slider(label="EKG Score", info="Rate your EKG score, 1 being low, 5 being high", minimum=1, maximum=5, value=4, step=1)
|
59 |
-
thalachh = gr.
|
60 |
|
61 |
-
exng = gr.
|
62 |
-
oldpeak = gr.Slider(label="
|
63 |
-
slp = gr.
|
64 |
-
caa = gr.Slider(label="
|
65 |
-
thall = gr.Slider(label="thall Score", minimum=
|
66 |
|
67 |
submit_btn = gr.Button("Analyze")
|
68 |
|
|
|
50 |
|
51 |
age = gr.Number(label="age Score", value=80)
|
52 |
sex = gr.Radio(["Male", "Female"], label="Gender", type = "index", info = "What is your gender?")
|
53 |
+
cp = gr.Radio([0,1,2,3], label="Chest Pain", info="Rate the severity of your chest pain [0: none, 5: ER RIGHT NOW]:")
|
54 |
trtbps = gr.Number(label="Resting Blood Pressure", info = "What is your resting blood pressure?", minimum=1, maximum=200, value=4)
|
55 |
chol = gr.Slider(label="Cholesterol", info="What is your Cholesterol level?", minimum=1, maximum=570, value=4, step=1)
|
56 |
fbs = gr.Radio([1, 2, 3, 4, 5], label="Blood Sugar", info="Do you have high blood sugar? [1: Low, 5: Very High]")
|
57 |
|
58 |
restecg = gr.Slider(label="EKG Score", info="Rate your EKG score, 1 being low, 5 being high", minimum=1, maximum=5, value=4, step=1)
|
59 |
+
thalachh = gr.Number(label="Maximum Heart rate", minimum=1, maximum=205, value=4)
|
60 |
|
61 |
+
exng = gr.Radio(["No", "Yes"], label="Exercise Risk", info="Do you have heart risk during exercise?", type="index")
|
62 |
+
oldpeak = gr.Slider(label="Rate your ST depression during exercise:", minimum=1, maximum=10, value=5, step=0.1)
|
63 |
+
slp = gr.Radio(["unslopping", "flat", "downsloping"], label="Slope" ,info="What is the slope of your peak ST segment", type="index")
|
64 |
+
caa = gr.Slider(label="Major Blood Vessels", "How many major blood vessels do you have?", minimum=0, maximum=4, value=2, step=1)
|
65 |
+
thall = gr.Slider(label="thall Score", info="What is your thall score?", minimum=0, maximum=3, value=2, step=1)
|
66 |
|
67 |
submit_btn = gr.Button("Analyze")
|
68 |
|