DrishtiSharma
commited on
Update app.py
Browse files
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 |
-
|
|
|
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 |
|