Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
0137151
1 Parent(s): 2ce67a7

session state error

Browse files
Files changed (1) hide show
  1. utils/semantic_search.py +1 -1
utils/semantic_search.py CHANGED
@@ -219,7 +219,7 @@ def semanticSearchPipeline(documents:List[Document], embedding_model:Text = Non
219
  """
220
  document_store = createDocumentStore(documents)
221
  if check_streamlit:
222
- if retriever in st.session_state:
223
  if st.session_state['retriever']:
224
  retriever = st.session_state['retriever']
225
  else:
 
219
  """
220
  document_store = createDocumentStore(documents)
221
  if check_streamlit:
222
+ if 'retriever' in st.session_state:
223
  if st.session_state['retriever']:
224
  retriever = st.session_state['retriever']
225
  else: