GhylB commited on
Commit
6c72ddb
·
1 Parent(s): aa49f37

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -16,7 +16,7 @@ app = FastAPI(title="API")
16
 
17
 
18
  """We load a machine learning model and a scaler that help us make predictions based on data."""
19
- model = joblib.load('gbc.pkl')
20
  scaler = joblib.load('scaler.pkl')
21
 
22
  """We define a function that will make predictions using our model and scaler."""
 
16
 
17
 
18
  """We load a machine learning model and a scaler that help us make predictions based on data."""
19
+ model = joblib.load('gbc.pkl',mmap_mode='r')
20
  scaler = joblib.load('scaler.pkl')
21
 
22
  """We define a function that will make predictions using our model and scaler."""