QuerySearcher / app /config.py
LiamKhoaLe's picture
Upd cache and transformer path.
963b15c
raw
history blame contribute delete
205 Bytes
import os
os.environ["TRANSFORMERS_CACHE"] = "/app/model_cache"
os.environ["HF_HOME"] = "/app/.cache/huggingface"
os.environ["SENTENCE_TRANSFORMERS_HOME"] = "/app/.cache/huggingface/sentence-transformers"