ravi6k commited on
Commit
bcfad0b
1 Parent(s): e6cbd42

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ log_file = Path("logs/") / f"data_{uuid.uuid4()}.json"
21
  log_folder = log_file.parent
22
 
23
  scheduler = CommitScheduler(
24
- repo_id="insurance-charge-mlops-logs", # provide a name "insurance-charge-mlops-logs" for the repo_id
25
  repo_type="dataset",
26
  folder_path=log_folder,
27
  path_in_repo="data",
@@ -56,12 +56,12 @@ def insurance_charge_mlops(age, sex, bmi, children, smoker, region):
56
  'children': children,
57
  'smoker': smoker,
58
  'region': region,
59
- 'prediction': prediction[0]
60
  }
61
  ))
62
  f.write("\n")
63
 
64
- return prediction[0]
65
 
66
 
67
  # Set up UI components for input and output
 
21
  log_folder = log_file.parent
22
 
23
  scheduler = CommitScheduler(
24
+ repo_id="Ravikant_insurance_charge_prediction", # provide a name "insurance-charge-mlops-logs" for the repo_id
25
  repo_type="dataset",
26
  folder_path=log_folder,
27
  path_in_repo="data",
 
56
  'children': children,
57
  'smoker': smoker,
58
  'region': region,
59
+ 'prediction': prediction[0][0]
60
  }
61
  ))
62
  f.write("\n")
63
 
64
+ return prediction[0][0]
65
 
66
 
67
  # Set up UI components for input and output