Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,8 @@ def get_text_chunks(text:str) ->list:
|
|
38 |
|
39 |
|
40 |
def get_vectorstore(text_chunks : list) -> FAISS:
|
41 |
-
model = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
|
|
|
42 |
encode_kwargs = {
|
43 |
"normalize_embeddings": True
|
44 |
} # set True to compute cosine similarity
|
|
|
38 |
|
39 |
|
40 |
def get_vectorstore(text_chunks : list) -> FAISS:
|
41 |
+
#model = "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
|
42 |
+
model="paraphrase-distilroberta-base-v1"
|
43 |
encode_kwargs = {
|
44 |
"normalize_embeddings": True
|
45 |
} # set True to compute cosine similarity
|