Spaces:
Running
Running
Commit
•
6fa0cb9
1
Parent(s):
80b067e
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,9 @@ def predict(age, sex, chestPainType, restingBP, cholesterol, fastingBS, restingE
|
|
33 |
|
34 |
example = [
|
35 |
[40, 'M', 'ATA', 140, 289, 0, 'Normal', 172, 'N', 0.0, 'Up'],
|
36 |
-
[49, 'F', 'NAP', 160, 180, 0, 'Normal', 156, 'N', 1.0, 'Flat']
|
|
|
|
|
37 |
]
|
38 |
|
39 |
gr.Interface(
|
@@ -47,7 +49,7 @@ gr.Interface(
|
|
47 |
gr.Dropdown(['ASY', 'ATA', 'NAP', 'TA'], label="Chest Pain Type", default="ASY"),
|
48 |
gr.inputs.Number(default=120, label="Resting Blood Pressure"),
|
49 |
gr.inputs.Number(default=0, label="Cholesterol"),
|
50 |
-
gr.Dropdown([
|
51 |
gr.Dropdown(['LVH', 'Normal', 'ST'], default="Normal", label="Resting ECG"),
|
52 |
gr.inputs.Number(default=150, label="maximum heart rate"),
|
53 |
gr.inputs.Radio(choices=["N", "Y"], default="No", label="ExerciseAngina"),
|
|
|
33 |
|
34 |
example = [
|
35 |
[40, 'M', 'ATA', 140, 289, 0, 'Normal', 172, 'N', 0.0, 'Up'],
|
36 |
+
[49, 'F', 'NAP', 160, 180, 0, 'Normal', 156, 'N', 1.0, 'Flat'],
|
37 |
+
[50, 'M', 'ASY', 140, 341, 0, 'ST', 125, 'Y', 1.8, 'Flat'],
|
38 |
+
[53, 'M', 'NAP', 145, 518, 0, 'Normal', 125, 'N', 0.0, 'Flat']
|
39 |
]
|
40 |
|
41 |
gr.Interface(
|
|
|
49 |
gr.Dropdown(['ASY', 'ATA', 'NAP', 'TA'], label="Chest Pain Type", default="ASY"),
|
50 |
gr.inputs.Number(default=120, label="Resting Blood Pressure"),
|
51 |
gr.inputs.Number(default=0, label="Cholesterol"),
|
52 |
+
gr.Dropdown([0, 1], default=0, label="Fasting Blood Sugar"),
|
53 |
gr.Dropdown(['LVH', 'Normal', 'ST'], default="Normal", label="Resting ECG"),
|
54 |
gr.inputs.Number(default=150, label="maximum heart rate"),
|
55 |
gr.inputs.Radio(choices=["N", "Y"], default="No", label="ExerciseAngina"),
|