Spaces:
Runtime error
Runtime error
Update qabot.py
Browse files
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
|