Spaces:
Runtime error
Runtime error
Update main.py
Browse files
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."""
|