This commit is contained in:
ag-TJNII 2025-06-26 18:45:11 +00:00 committed by GitHub
commit f60a475277
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,4 +24,5 @@ os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
# os.environ["ANONYMIZED_TELEMETRY"] = "False"
# adding tiktoken cache path within repo to be able to run in offline environment.
os.environ["TIKTOKEN_CACHE_DIR"] = "tiktoken_cache"
# Only set to cache within the repo if the user has not declared a cache path
os.environ.setdefault("TIKTOKEN_CACHE_DIR", "tiktoken_cache")