Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,8 @@ import os
|
|
| 11 |
# -----------------------------
|
| 12 |
REPO_ID = "MAZEN00/Player"
|
| 13 |
|
| 14 |
-
# Use
|
| 15 |
-
cache_dir = "
|
| 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)
|