Pudding48 commited on
Commit
6871744
·
verified ·
1 Parent(s): 39745b0

Update qabot.py

Browse files
Files changed (1) hide show
  1. qabot.py +6 -0
qabot.py CHANGED
@@ -6,6 +6,12 @@ from langchain_community.embeddings import GPT4AllEmbeddings
6
  from langchain_community.vectorstores import FAISS
7
 
8
  from huggingface_hub import hf_hub_download
 
 
 
 
 
 
9
  # !pip install llama-cpp-python
10
 
11
  # from llama_cpp import Llama
 
6
  from langchain_community.vectorstores import FAISS
7
 
8
  from huggingface_hub import hf_hub_download
9
+
10
+ import os
11
+
12
+ # Fix Hugging Face cache path for Docker Spaces
13
+ os.environ["HF_HOME"] = "/home/user/app/hf_cache"
14
+
15
  # !pip install llama-cpp-python
16
 
17
  # from llama_cpp import Llama