eogreen commited on
Commit
062d250
1 Parent(s): 6fca5d1

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -13,6 +13,7 @@ from pathlib import Path
13
  import subprocess
14
 
15
  # Run the training script
 
16
  #subprocess.run(["python", "train.py"])
17
  #print('done!')
18
 
@@ -59,12 +60,12 @@ model_output = gr.Label(label="charges")
59
  def predict_insurance_charges(age, bmi, children, sex, smoker, region):
60
 
61
  sample = {
62
- 'Age': age,
63
- 'BMI': bmi,
64
- 'Children': children,
65
- 'Sex': sex,
66
- 'Smoker': smoker,
67
- 'Region': region
68
  }
69
 
70
  data_point = pd.DataFrame([sample])
@@ -106,5 +107,5 @@ gr_interface = gr.Interface(
106
  gr_interface.queue()
107
  gr_interface.launch(share=False)
108
 
109
- print('*** Running train.py ***')
110
 
 
13
  import subprocess
14
 
15
  # Run the training script
16
+ #print('*** Running train.py ***')
17
  #subprocess.run(["python", "train.py"])
18
  #print('done!')
19
 
 
60
  def predict_insurance_charges(age, bmi, children, sex, smoker, region):
61
 
62
  sample = {
63
+ 'age': age,
64
+ 'bmi': bmi,
65
+ 'children': children,
66
+ 'sex': sex,
67
+ 'smoker': smoker,
68
+ 'region': region
69
  }
70
 
71
  data_point = pd.DataFrame([sample])
 
107
  gr_interface.queue()
108
  gr_interface.launch(share=False)
109
 
110
+
111