NightmareFox12 commited on
Commit
c6f5f47
·
verified ·
1 Parent(s): f9a564a

Update rag_api.py

Browse files
Files changed (1) hide show
  1. rag_api.py +4 -0
rag_api.py CHANGED
@@ -9,6 +9,10 @@ from langchain.chains import RetrievalQA
9
  from langchain.prompts import PromptTemplate
10
  from langchain_groq import ChatGroq
11
 
 
 
 
 
12
  # --------------------------------------------------------
13
  # 1. CONFIGURACIÓN
14
  # --------------------------------------------------------
 
9
  from langchain.prompts import PromptTemplate
10
  from langchain_groq import ChatGroq
11
 
12
+ # ESTABLECER LA RUTA DEL CACHÉ A /tmp, donde sí hay permisos
13
+ os.environ['TRANSFORMERS_CACHE'] = '/tmp/huggingface_cache'
14
+ os.environ['HF_HOME'] = '/tmp/huggingface_cache'
15
+
16
  # --------------------------------------------------------
17
  # 1. CONFIGURACIÓN
18
  # --------------------------------------------------------