kiyer commited on
Commit
f7c8a24
·
verified ·
1 Parent(s): 7f49cf4

Update app_gradio.py

Browse files
Files changed (1) hide show
  1. app_gradio.py +1 -1
app_gradio.py CHANGED
@@ -314,9 +314,9 @@ def run_rag_qa(query, papers_df, question_type):
314
  doc = Document(page_content=content, metadata=metadata)
315
  documents.append(doc)
316
 
 
317
  try:
318
  del vectorstore, splits
319
- chromadb.api.client.SharedSystemClient.clear_system_cache()
320
  except:
321
  print('no vectorstore found, initializing')
322
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=150, chunk_overlap=50, add_start_index=True)
 
314
  doc = Document(page_content=content, metadata=metadata)
315
  documents.append(doc)
316
 
317
+ chromadb.api.client.SharedSystemClient.clear_system_cache()
318
  try:
319
  del vectorstore, splits
 
320
  except:
321
  print('no vectorstore found, initializing')
322
  text_splitter = RecursiveCharacterTextSplitter(chunk_size=150, chunk_overlap=50, add_start_index=True)