yasirapunsith commited on
Commit
fbc408c
·
1 Parent(s): 1e55e7a
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -20,7 +20,7 @@ from utils.formatAndPreprocessNewPatterns import get_patetrn_name_by_encoding, g
20
  # If you place 'Models/' directly in your repo root, it will be at /repository/Models/
21
  # If you place it outside (not recommended), you'd need to adjust paths.
22
  # For simplicity, assume `Models/` is in the root of your HF repo.
23
- MODEL_PATH = os.path.join(os.environ.get("MODEL_DIR", "."), "Models", "Width Aug OHLC_mini_rocket_xgb.joblib")
24
 
25
  # Load the model globally
26
  try:
 
20
  # If you place 'Models/' directly in your repo root, it will be at /repository/Models/
21
  # If you place it outside (not recommended), you'd need to adjust paths.
22
  # For simplicity, assume `Models/` is in the root of your HF repo.
23
+ MODEL_PATH = os.path.join(os.environ.get("MODEL_DIR", "/repository"), "Models", "Width Aug OHLC_mini_rocket_xgb.joblib")
24
 
25
  # Load the model globally
26
  try: