Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -17,7 +17,7 @@ app = FastAPI(title="API")
|
|
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."""
|
23 |
def predict(df, endpoint='simple'):
|
|
|
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',mmap_mode='r')
|
21 |
|
22 |
"""We define a function that will make predictions using our model and scaler."""
|
23 |
def predict(df, endpoint='simple'):
|