Update app.py
#4
by mennabar4a8 - opened
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'
|
| 32 |
-
smoker_input = gr.Dropdown(['yes', 'no'
|
| 33 |
-
region_input = gr.Dropdown(['southeast', 'southwest', 'northeast', 'northwest'
|
| 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="
|
| 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
|