Migrate to uv; fix clippings paths and wrapper
This commit is contained in:
parent
3347a242ef
commit
4df608c440
7 changed files with 5137 additions and 7 deletions
|
|
@ -11,6 +11,13 @@
|
|||
# libraries, because huggingface_hub.constants evaluates HF_HUB_OFFLINE
|
||||
# at import time.
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# This script lives in clippings_search/ but uses ./ paths relative to the
|
||||
# project root (./models, ./clippings_search/store_clippings). Anchor the CWD
|
||||
# to the project root so it works no matter where it's invoked from.
|
||||
os.chdir(Path(__file__).resolve().parent.parent)
|
||||
|
||||
os.environ["TOKENIZERS_PARALLELISM"] = "false"
|
||||
os.environ["SENTENCE_TRANSFORMERS_HOME"] = "./models"
|
||||
os.environ["HF_HUB_OFFLINE"] = "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue