model-path-fix
Some checks failed
Deploy on push / deploy (push) Failing after 1m14s

This commit is contained in:
2025-09-01 16:10:10 +03:00
parent a1e4d0d391
commit 9daade05c0
6 changed files with 103 additions and 53 deletions

View File

@@ -15,8 +15,10 @@ def get_models_cache_dir() -> str:
"""Определяет лучшую папку для кеша моделей"""
# Пробуем /dump если доступен для записи
dump_path = Path("/dump")
print(f"🔍 Checking /dump - exists: {dump_path.exists()}, writable: {os.access('/dump', os.W_OK) if dump_path.exists() else 'N/A'}")
print(
f"🔍 Checking /dump - exists: {dump_path.exists()}, writable: {os.access('/dump', os.W_OK) if dump_path.exists() else 'N/A'}"
)
if dump_path.exists() and os.access("/dump", os.W_OK):
cache_dir = "/dump/huggingface"
try: