Spaces:
Sleeping
Sleeping
Update seer.py
Browse files
seer.py
CHANGED
@@ -8,16 +8,9 @@ import os
|
|
8 |
from date_features import getDateFeatures
|
9 |
|
10 |
|
11 |
-
#
|
12 |
-
|
13 |
-
|
14 |
-
# Load the model from the pickle file
|
15 |
-
model_path = os.path.join(current_dir, 'model.pkl')
|
16 |
-
model = joblib.load(model_path)
|
17 |
-
|
18 |
-
# Load the scaler from the pickle file
|
19 |
-
encoder_path = os.path.join(current_dir, 'encoder.pkl')
|
20 |
-
encoder = joblib.load(encoder_path)
|
21 |
|
22 |
|
23 |
# Set Page Configurations
|
|
|
8 |
from date_features import getDateFeatures
|
9 |
|
10 |
|
11 |
+
# Define path for the model and encoder from the pickle file
|
12 |
+
model = pickle.load(open("model.pkl", "rb"))
|
13 |
+
encoder = pickle.load(open("encoder.pkl", "rb"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
# Set Page Configurations
|