feat(local): tiktoken cache within repo for offline (#1467)

This commit is contained in:
Arun Yadav
2024-03-12 03:25:13 +05:30
committed by GitHub
parent 02dc83e8e9
commit 821bca32e9
2 changed files with 5 additions and 0 deletions

View File

@@ -22,3 +22,6 @@ os.environ["GRADIO_ANALYTICS_ENABLED"] = "False"
# Disable chromaDB telemetry
# It is already disabled, see PR#1144
# 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"