Paul-Joshi commited on
Commit
d2f95a7
1 Parent(s): 07ecaec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def method_get_vectorstore(document_chunks):
35
  #embeddings = NomicEmbeddings(model="nomic-embed-text-v1.5")
36
  #embeddings = HuggingFaceEmbeddings()
37
 
38
- model = SentenceTransformer("nomic-ai/nomic-embed-text-v1.5")
39
  embeddings = model.encode()
40
 
41
  # create a vectorstore from the chunks
 
35
  #embeddings = NomicEmbeddings(model="nomic-embed-text-v1.5")
36
  #embeddings = HuggingFaceEmbeddings()
37
 
38
+ model = SentenceTransformer("nomic-ai/nomic-embed-text-v1.5",trust_remote_code=True)
39
  embeddings = model.encode()
40
 
41
  # create a vectorstore from the chunks