MAZEN00 commited on
Commit
b649d5c
·
verified ·
1 Parent(s): 05fa6ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -11,9 +11,8 @@ import os
11
  # -----------------------------
12
  REPO_ID = "MAZEN00/Player"
13
 
14
- # Use local cache inside project (not /.cache)
15
- cache_dir = "./cache"
16
- os.makedirs(cache_dir, exist_ok=True)
17
 
18
  model_path = hf_hub_download(repo_id=REPO_ID, filename="modeel.joblib", cache_dir=cache_dir)
19
  columns_path = hf_hub_download(repo_id=REPO_ID, filename="columns.pkl", cache_dir=cache_dir)
 
11
  # -----------------------------
12
  REPO_ID = "MAZEN00/Player"
13
 
14
+ # Use Hugging Face default cache inside /home
15
+ cache_dir = os.path.expanduser("~/.cache/huggingface")
 
16
 
17
  model_path = hf_hub_download(repo_id=REPO_ID, filename="modeel.joblib", cache_dir=cache_dir)
18
  columns_path = hf_hub_download(repo_id=REPO_ID, filename="columns.pkl", cache_dir=cache_dir)