Spaces:
Runtime error
Runtime error
solve cache path
Browse files5 unmodified lines678910111213145 unmodified linesfrom fastapi.responses import JSONResponseimport osfrom os import path# cache_path = path.join(path.dirname(path.abspath(__file__)), "models")cache_path = "~/hf_home"os.environ["TRANSFORMERS_CACHE"] = cache_pathos.environ["HF_HUB_CACHE"] = cache_pathos.environ["HF_HOME"] = cache_path5 unmodified lines678910111213145 unmodified linesfrom fastapi.responses import JSONResponseimport os# from os import path# cache_path = path.join(path.dirname(path.abspath(__file__)), "models")cache_path = "~/.cache/huggingface"os.environ["TRANSFORMERS_CACHE"] = cache_pathos.environ["HF_HUB_CACHE"] = cache_pathos.environ["HF_HOME"] = cache_path
main.py+2-2