Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ import threading
|
|
18 |
# Setup persistent directories for Hugging Face Spaces
|
19 |
# ---------------------------------------------------------------------------------------
|
20 |
# Use a persistent cache directory (adjust the path as needed based on your HF Space settings)
|
21 |
-
persistent_dir = "/
|
22 |
os.makedirs(persistent_dir, exist_ok=True)
|
23 |
|
24 |
model_cache_dir = os.path.join(persistent_dir, "txagent_models")
|
|
|
18 |
# Setup persistent directories for Hugging Face Spaces
|
19 |
# ---------------------------------------------------------------------------------------
|
20 |
# Use a persistent cache directory (adjust the path as needed based on your HF Space settings)
|
21 |
+
persistent_dir = "/data/hf_cache"
|
22 |
os.makedirs(persistent_dir, exist_ok=True)
|
23 |
|
24 |
model_cache_dir = os.path.join(persistent_dir, "txagent_models")
|