eogreen commited on
Commit
be3cac1
·
verified ·
1 Parent(s): 64ea0e7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -33,7 +33,6 @@ insurance_charge_predictor = joblib.load('model.joblib')
33
  #numeric_features = ['age', 'bmi', 'children']
34
  #categorical_features = ['sex', 'smoker', 'region']
35
 
36
- age_input = gr.Number(label="Age")
37
  age_input = gr.Number(label="Age")
38
  bmi_input = gr.Number(label="BMI")
39
  children_input = gr.Number(label="Children")
@@ -42,7 +41,7 @@ children_input = gr.Number(label="Children")
42
  # smoker: ['yes' 'no']
43
  # region: ['southwest' 'southeast' 'northwest' 'northeast']
44
 
45
- sex_input = gr.Dropdown(['female','male'],label='Defaulter')
46
  smoker_input = gr.Dropdown(['yes','no'],label='Smoker')
47
  region_input = gr.Dropdown(['southwest', 'southeast', 'northwest', 'northeast'],label='Region')
48
 
 
33
  #numeric_features = ['age', 'bmi', 'children']
34
  #categorical_features = ['sex', 'smoker', 'region']
35
 
 
36
  age_input = gr.Number(label="Age")
37
  bmi_input = gr.Number(label="BMI")
38
  children_input = gr.Number(label="Children")
 
41
  # smoker: ['yes' 'no']
42
  # region: ['southwest' 'southeast' 'northwest' 'northeast']
43
 
44
+ sex_input = gr.Dropdown(['female','male'],label='Sex')
45
  smoker_input = gr.Dropdown(['yes','no'],label='Smoker')
46
  region_input = gr.Dropdown(['southwest', 'southeast', 'northwest', 'northeast'],label='Region')
47