Upload app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ scheduler = CommitScheduler(
|
|
37 |
|
38 |
# Define the predict function which will take features, convert to dataframe and make predictions using the saved model
|
39 |
# the functions runs when 'Submit' is clicked or when a API request is made
|
40 |
-
def predict_insurance_charge(age,bmi,sex,
|
41 |
sample = {
|
42 |
'age':age,
|
43 |
'bmi':bmi,
|
|
|
37 |
|
38 |
# Define the predict function which will take features, convert to dataframe and make predictions using the saved model
|
39 |
# the functions runs when 'Submit' is clicked or when a API request is made
|
40 |
+
def predict_insurance_charge(age,bmi,children,sex,smoker,region):
|
41 |
sample = {
|
42 |
'age':age,
|
43 |
'bmi':bmi,
|