Add new options and improvements for hfhub

This commit is contained in:
Deniz Şafak
2025-07-15 10:24:05 +03:00
parent b9c3fd7c6c
commit 6b85a08ccb
6 changed files with 77 additions and 5 deletions
-3
View File
@@ -7,11 +7,8 @@ import subprocess
import re
from threading import Thread
# suppress warnings and disable HF hub symlink warnings
os.environ["HF_HUB_DISABLE_SYMLINKS_WARNING"] = "1"
warnings.filterwarnings("ignore")
def get_resource_path(package, resource):
"""
Get the path to a resource file, with fallback to local file system.