Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
4d2be28
1 Parent(s): b941115
Files changed (1) hide show
  1. utils/semantic_search.py +1 -1
utils/semantic_search.py CHANGED
@@ -103,7 +103,7 @@ def semanticSearchPipeline(documents:List[Document]):
103
  if 'document_store' in st.session_state:
104
  document_store = st.session_state['document_store']
105
  temp = document_store.get_all_documents()
106
- if st.session_state('filename') != temp[0].meta['name']:
107
 
108
  document_store = InMemoryDocumentStore()
109
  document_store.write_documents(documents)
 
103
  if 'document_store' in st.session_state:
104
  document_store = st.session_state['document_store']
105
  temp = document_store.get_all_documents()
106
+ if st.session_state['filename'] != temp[0].meta['name']:
107
 
108
  document_store = InMemoryDocumentStore()
109
  document_store.write_documents(documents)