eogreen commited on
Commit
46b487e
1 Parent(s): 73d14c6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ model_output = gr.Label(label="charges")
50
  # Define the predict function which will take features, convert to dataframe and make predictions using the saved model
51
  # the functions runs when 'Submit' is clicked or when a API request is made
52
 
53
- def predict_term_deposit(age, bmi, children, sex, smoker, region):
54
 
55
  sample = {
56
  'Age': age,
@@ -82,7 +82,7 @@ def predict_term_deposit(age, bmi, children, sex, smoker, region):
82
  return prediction[0]
83
 
84
  gr_interface = gr.Interface(
85
- fn=predict_term_deposit,
86
  inputs=[age_input,
87
  bmi_input,
88
  children_input,
 
50
  # Define the predict function which will take features, convert to dataframe and make predictions using the saved model
51
  # the functions runs when 'Submit' is clicked or when a API request is made
52
 
53
+ def predict_insurance_charges(age, bmi, children, sex, smoker, region):
54
 
55
  sample = {
56
  'Age': age,
 
82
  return prediction[0]
83
 
84
  gr_interface = gr.Interface(
85
+ fn=predict_insurance_charges,
86
  inputs=[age_input,
87
  bmi_input,
88
  children_input,