Waflon commited on
Commit
207b927
1 Parent(s): 262f52e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def split_text_into_chunks(documents):
25
 
26
  # Function to create embeddings
27
  def create_embeddings():
28
- embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/multi-qa-MiniLM-L6-cos-v1, model_kwargs={'device': "cpu"})
29
  #embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2", model_kwargs={'device': "cpu"})
30
  return embeddings
31
 
 
25
 
26
  # Function to create embeddings
27
  def create_embeddings():
28
+ embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2", model_kwargs={'device': "cpu"})
29
  #embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2", model_kwargs={'device': "cpu"})
30
  return embeddings
31