savi-cyber commited on
Commit
07337b3
·
verified ·
1 Parent(s): 477c598

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -44,12 +44,12 @@ scheduler = CommitScheduler(
44
  # the functions runs when 'Submit' is clicked or when a API request is made
45
  def insurance_charge_predictor(age, bmi, children, sex, smoker, region):
46
  input_data = pd.DataFrame({
47
- 'Age': [age],
48
- 'BMI': [bmi],
49
- 'Children': [children],
50
- 'Sex': [sex],
51
- 'Smoker': [smoker],
52
- 'Region': [region]
53
  })
54
 
55
  prediction = model.predict(input_data)
 
44
  # the functions runs when 'Submit' is clicked or when a API request is made
45
  def insurance_charge_predictor(age, bmi, children, sex, smoker, region):
46
  input_data = pd.DataFrame({
47
+ 'age': [age],
48
+ 'bmi': [bmi],
49
+ 'children': [children],
50
+ 'sex': [sex],
51
+ 'smoker': [smoker],
52
+ 'region': [region]
53
  })
54
 
55
  prediction = model.predict(input_data)