Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,18 +66,18 @@ def make_prediction(age, sex, cp, trestbps, chol, fbs, restecg, thalach, exang,
|
|
66 |
# Create the Gradio interface
|
67 |
inputs = [
|
68 |
gr.Number(label='age'),
|
69 |
-
gr.Radio(choices=[0,1], label='sex'),
|
70 |
gr.Dropdown(choices=[1,2,3,4], label='chest pain type'),
|
71 |
-
gr.Number(label='resting blood pressure'),
|
72 |
-
gr.Number(label='serum
|
73 |
-
gr.Radio(choices=[0,1], label='fasting blood sugar'),
|
74 |
gr.Radio(choices=[0,1,2], label='resting electrocardiographic'),
|
75 |
gr.Number(label='maximum heart rate'),
|
76 |
gr.Radio(choices=[0,1], label='exercise induced angina'),
|
77 |
gr.Number(label='oldpeak'),
|
78 |
gr.Dropdown(choices=[1,2,3], label='slope ST'),
|
79 |
gr.Dropdown(choices=[0,1,2,3], label='major vessels'),
|
80 |
-
gr.Dropdown(choices=[3,6,7], label='
|
81 |
gr.Dropdown(choices=['Tree', 'QDA', 'MLP', 'Log', 'LDA', 'For', 'SVM'], label='Select the model')
|
82 |
]
|
83 |
|
|
|
66 |
# Create the Gradio interface
|
67 |
inputs = [
|
68 |
gr.Number(label='age'),
|
69 |
+
gr.Radio(choices=[0,1], label='sex(m=1, f=0)'),
|
70 |
gr.Dropdown(choices=[1,2,3,4], label='chest pain type'),
|
71 |
+
gr.Number(label='resting blood pressure(NR=120/80)'),
|
72 |
+
gr.Number(label='serum cholesterol(NR=<200mg/dl)'),
|
73 |
+
gr.Radio(choices=[0,1], label='fasting blood sugar(NR=70-100mg/dl)'),
|
74 |
gr.Radio(choices=[0,1,2], label='resting electrocardiographic'),
|
75 |
gr.Number(label='maximum heart rate'),
|
76 |
gr.Radio(choices=[0,1], label='exercise induced angina'),
|
77 |
gr.Number(label='oldpeak'),
|
78 |
gr.Dropdown(choices=[1,2,3], label='slope ST'),
|
79 |
gr.Dropdown(choices=[0,1,2,3], label='major vessels'),
|
80 |
+
gr.Dropdown(choices=[3,6,7], label='thallessemia'),
|
81 |
gr.Dropdown(choices=['Tree', 'QDA', 'MLP', 'Log', 'LDA', 'For', 'SVM'], label='Select the model')
|
82 |
]
|
83 |
|