DrishtiSharma commited on
Commit
16132cd
·
verified ·
1 Parent(s): 7ad4dda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -735,7 +735,8 @@ def set_tools() -> List[Tool]:
735
  )
736
  if "Retrieval" in tool_names:
737
  # Get the retriever tool and save it to st.session_state.retriever_tool.
738
- get_retriever()
 
739
  if st.session_state.vector_store_message:
740
  st.write(st.session_state.vector_store_message)
741
 
 
735
  )
736
  if "Retrieval" in tool_names:
737
  # Get the retriever tool and save it to st.session_state.retriever_tool.
738
+ if not st.session_state.retriever_tool:
739
+ get_retriever()
740
  if st.session_state.vector_store_message:
741
  st.write(st.session_state.vector_store_message)
742