Pudding48 commited on
Commit
22c0759
·
verified ·
1 Parent(s): cc5bd3b

Update qabot.py

Browse files
Files changed (1) hide show
  1. qabot.py +4 -2
qabot.py CHANGED
@@ -16,11 +16,13 @@ from huggingface_hub import hf_hub_download
16
  # filename="tinyllama-1.1b-chat-v1.0.Q8_0.gguf",
17
  # )
18
  import os
19
- os.environ["HF_HOME"] = "/home/user/app/hf_cache"
 
20
 
21
  model_file = hf_hub_download(
22
  repo_id="Pudding48/TinyLlamaTest",
23
- filename="tinyllama-1.1b-chat-v1.0.Q8_0.gguf"
 
24
  )
25
 
26
  # Vector store location
 
16
  # filename="tinyllama-1.1b-chat-v1.0.Q8_0.gguf",
17
  # )
18
  import os
19
+ cache_path = "/home/user/app/hf_cache"
20
+ os.makedirs(cache_path, exist_ok=True)
21
 
22
  model_file = hf_hub_download(
23
  repo_id="Pudding48/TinyLlamaTest",
24
+ filename="tinyllama-1.1b-chat-v1.0.Q8_0.gguf",
25
+ cache_dir=cache_path
26
  )
27
 
28
  # Vector store location