Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,12 +7,12 @@ import pandas as pd
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
# -----------------------------
|
| 10 |
-
#
|
| 11 |
# -----------------------------
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
|
| 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)
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
# -----------------------------
|
| 10 |
+
# Fix cache directory (use /tmp to avoid PermissionError)
|
| 11 |
# -----------------------------
|
| 12 |
+
os.environ["HF_HOME"] = "/tmp/huggingface"
|
| 13 |
+
cache_dir = "/tmp/huggingface"
|
| 14 |
|
| 15 |
+
REPO_ID = "MAZEN00/Player"
|
|
|
|
| 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)
|