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