Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -28,9 +28,9 @@ charges_predictor = joblib.load('model.joblib')
28
  age_input = gr.Number(label='Age')
29
  bmi_input = gr.Number(label='BMI')
30
  children_input = gr.Number(label='Children')
31
- sex_input = gr.Dropdown(['male', 'female', 'N/A'], value='N/A', label='Sex')
32
- smoker_input = gr.Dropdown(['yes', 'no', 'N/A'], value='N/A', label="Smoker")
33
- region_input = gr.Dropdown(['southeast', 'southwest', 'northeast', 'northwest', 'N/A'],
34
  value='N/A', label='Region')
35
 
36
 
@@ -76,7 +76,7 @@ demo = gr.Interface(
76
  inputs=[age_input, bmi_input,
77
  children_input, sex_input, smoker_input, region_input],
78
  outputs=model_output,
79
- title="HealthyLife Insurance Charge Prediction",
80
  description="This API allows you to predict the appropiate charges for each patient",
81
  flagging_mode="manual",
82
  concurrency_limit=8
 
28
  age_input = gr.Number(label='Age')
29
  bmi_input = gr.Number(label='BMI')
30
  children_input = gr.Number(label='Children')
31
+ sex_input = gr.Dropdown(['male', 'female'], value='N/A', label='Sex')
32
+ smoker_input = gr.Dropdown(['yes', 'no'], value='N/A', label="Smoker")
33
+ region_input = gr.Dropdown(['southeast', 'southwest', 'northeast', 'northwest'],
34
  value='N/A', label='Region')
35
 
36
 
 
76
  inputs=[age_input, bmi_input,
77
  children_input, sex_input, smoker_input, region_input],
78
  outputs=model_output,
79
+ title=" Insurance Charge Prediction",
80
  description="This API allows you to predict the appropiate charges for each patient",
81
  flagging_mode="manual",
82
  concurrency_limit=8