negi2725 commited on
Commit
93a05a4
·
verified ·
1 Parent(s): b1c7b4b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +6 -2
main.py CHANGED
@@ -33,13 +33,17 @@ HF_TOKEN = os.getenv("HF_TOKEN") # Set in environment variables
33
  FAISS_INDEX_PATH = snapshot_download(
34
  repo_id="negi2725/dataRag",
35
  repo_type="dataset",
36
- token=HF_TOKEN
 
 
37
  )
38
 
39
  # Download LegalBERT model
40
  MODEL_PATH = snapshot_download(
41
  repo_id="negi2725/legalBert",
42
- token=HF_TOKEN
 
 
43
  )
44
 
45
  logger.info(f"FAISS index files downloaded to: {FAISS_INDEX_PATH}")
 
33
  FAISS_INDEX_PATH = snapshot_download(
34
  repo_id="negi2725/dataRag",
35
  repo_type="dataset",
36
+ token=HF_TOKEN,
37
+ local_dir="./hf_cache/faiss_index",
38
+ local_dir_use_symlinks=False
39
  )
40
 
41
  # Download LegalBERT model
42
  MODEL_PATH = snapshot_download(
43
  repo_id="negi2725/legalBert",
44
+ token=HF_TOKEN,
45
+ local_dir="./hf_cache/legalbert_model",
46
+ local_dir_use_symlinks=False
47
  )
48
 
49
  logger.info(f"FAISS index files downloaded to: {FAISS_INDEX_PATH}")