Upload utils.py with huggingface_hub
Browse files1234522 unmodified lines2829303132333435363738import jsonfrom functools import lru_cachefrom typing import Any, Dict
import pkg_resources22 unmodified lines return dict(items)
@lru_cache(maxsize=None)def artifacts_json_cache(artifact_path): return load_json(artifact_path)
def load_json(path): with open(path) as f: try:utils.py+6