GhylB commited on
Commit
235ea32
1 Parent(s): cdf538a

Update seer.py

Browse files
Files changed (1) hide show
  1. seer.py +3 -10
seer.py CHANGED
@@ -8,16 +8,9 @@ import os
8
  from date_features import getDateFeatures
9
 
10
 
11
- # Get the current directory path
12
- current_dir = os.path.dirname(os.path.abspath(__file__))
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