Ayushnangia commited on
Commit
5157dfe
1 Parent(s): 6372be7
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -265,7 +265,6 @@ from langchain_community.vectorstores import Chroma
265
  from langchain_huggingface import HuggingFaceEmbeddings
266
  from langchain_core.runnables import RunnablePassthrough
267
  import chromadb
268
- chromadb.api.client.SharedSystemClient.clear_system_cache()
269
  os.environ['MISTRAL_API_KEY'] = 'XuyOObDE7trMbpAeI7OXYr3dnmoWy3L0'
270
 
271
  class VectorData():
@@ -302,6 +301,7 @@ class VectorData():
302
  )
303
 
304
  def add_file(self,file):
 
305
  if file is not None:
306
  self.ingested_files.append(file.name.split('/')[-1])
307
  self.retriever, self.vectorstore = utils.add_doc(file,self.vectorstore)
 
265
  from langchain_huggingface import HuggingFaceEmbeddings
266
  from langchain_core.runnables import RunnablePassthrough
267
  import chromadb
 
268
  os.environ['MISTRAL_API_KEY'] = 'XuyOObDE7trMbpAeI7OXYr3dnmoWy3L0'
269
 
270
  class VectorData():
 
301
  )
302
 
303
  def add_file(self,file):
304
+ chromadb.api.client.SharedSystemClient.clear_system_cache()
305
  if file is not None:
306
  self.ingested_files.append(file.name.split('/')[-1])
307
  self.retriever, self.vectorstore = utils.add_doc(file,self.vectorstore)