Chris4K commited on
Commit
d907eb6
1 Parent(s): 0a7f1c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -88,10 +88,10 @@ def get_vectorstore_from_url(url):
88
  model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
89
  )
90
  # load from disk
91
- vector_store = Chroma(persist_directory="/.cache/chroma_db", embedding_function=embeddings)
92
 
93
  #vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
94
- vector_store = Chroma.from_documents(document_chunks, embeddings, persist_directory="/.cache/chroma_db")
95
 
96
 
97
 
 
88
  model_name=model, encode_kwargs=encode_kwargs, model_kwargs={"device": "cpu"}
89
  )
90
  # load from disk
91
+ vector_store = Chroma(persist_directory="/home/user/.cache/chroma_db", embedding_function=embeddings)
92
 
93
  #vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
94
+ vector_store = Chroma.from_documents(document_chunks, embeddings, persist_directory="/home/user/.cache/chroma_db")
95
 
96
 
97