kkhushisaid commited on
Commit
ae04fcb
·
verified ·
1 Parent(s): ae60247

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 cholestoral'),
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='thal'),
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