MikeMann commited on
Commit
590a9e2
·
1 Parent(s): 114387a

path error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import os
2
  os.environ["CUDA_VISIBLE_DEVICES"] = "" # Disable CUDA initialization
3
  os.environ["allow_dangerous_deserialization"] = "True"
4
  print(os.getcwd())
5
- embedding_path="/docs/_embeddings/index.faiss"
6
  print(f"Loading FAISS index from: {embedding_path}")
7
  if not os.path.exists(embedding_path):
8
  print("File not found!")
@@ -165,7 +165,7 @@ if __name__ == '__main__':
165
  'embed_model_path': 'intfloat/multilingual-e5-large-instruct',
166
  'rerank_model_path': 'domci/ColBERTv2-mmarco-de-0.1'
167
  }
168
- docs_path = '/docs'
169
 
170
  bot = BSIChatbot(model_paths, docs_path)
171
  bot.initialize_embedding_model(rebuild_embeddings=False)
 
2
  os.environ["CUDA_VISIBLE_DEVICES"] = "" # Disable CUDA initialization
3
  os.environ["allow_dangerous_deserialization"] = "True"
4
  print(os.getcwd())
5
+ embedding_path="/home/user/app/docs/_embeddings/index.faiss"
6
  print(f"Loading FAISS index from: {embedding_path}")
7
  if not os.path.exists(embedding_path):
8
  print("File not found!")
 
165
  'embed_model_path': 'intfloat/multilingual-e5-large-instruct',
166
  'rerank_model_path': 'domci/ColBERTv2-mmarco-de-0.1'
167
  }
168
+ docs_path = '/home/user/app/docs'
169
 
170
  bot = BSIChatbot(model_paths, docs_path)
171
  bot.initialize_embedding_model(rebuild_embeddings=False)