Kurian Jose commited on
Commit
74d3140
·
1 Parent(s): 59224b3

fix: Set cache directory for sentence-transformers

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -48,6 +48,8 @@ def json_to_text(json_data):
48
  def initialize_rag_chain():
49
  global rag_chain
50
  try:
 
 
51
  # 1. Load data from JSON file
52
  print("Loading data from knowledge_base.json...")
53
  data_dir = "data"
 
48
  def initialize_rag_chain():
49
  global rag_chain
50
  try:
51
+ os.environ['SENTENCE_TRANSFORMERS_HOME'] = '/tmp'
52
+
53
  # 1. Load data from JSON file
54
  print("Loading data from knowledge_base.json...")
55
  data_dir = "data"