DaniAcosta04 commited on
Commit
8e3dcf0
·
verified ·
1 Parent(s): 1fefc77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,4 +1,4 @@
1
-
2
  import os
3
  import uuid
4
  import joblib
@@ -16,7 +16,7 @@ log_file = Path("logs/") / f"data_{uuid.uuid4()}.json"
16
  log_folder = log_file.parent
17
 
18
  scheduler = CommitScheduler(
19
- repo_id="insurance-charge-mlops-logs",
20
  repo_type="dataset",
21
  folder_path=log_folder,
22
  path_in_repo="data",
@@ -36,7 +36,7 @@ region_input = gr.Dropdown(['southeast', 'southwest', 'northeast', 'northwest',
36
 
37
  model_output = gr.Label(label='Charges')
38
 
39
- # the functions runs when 'Submit' is clicked or when a API request is made
40
  def predict_charges(age, bmi, children, sex, smoker, region, prediction):
41
  sample = {
42
  'age': age,
 
1
+ # Importing libraries
2
  import os
3
  import uuid
4
  import joblib
 
16
  log_folder = log_file.parent
17
 
18
  scheduler = CommitScheduler(
19
+ repo_id="Insurance_Charge_Prediction_Project",
20
  repo_type="dataset",
21
  folder_path=log_folder,
22
  path_in_repo="data",
 
36
 
37
  model_output = gr.Label(label='Charges')
38
 
39
+ # The function runs when 'Submit' is clicked or when a API request is made
40
  def predict_charges(age, bmi, children, sex, smoker, region, prediction):
41
  sample = {
42
  'age': age,