DrishtiSharma
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -668,13 +668,17 @@ def set_tools() -> List[Tool]:
|
|
668 |
# python_repl = PythonREPLTool()
|
669 |
|
670 |
tool_options = ["ArXiv", "Wikipedia", "Python_REPL", "Retrieval"]
|
|
|
671 |
tool_dictionary = {
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
"Retrieval": st.session_state.retriever_tool
|
676 |
}
|
677 |
|
|
|
|
|
|
|
|
|
678 |
if st.session_state.bing_subscription_validity:
|
679 |
search = BingSearchAPIWrapper()
|
680 |
elif st.session_state.google_cse_id_validity:
|
|
|
668 |
# python_repl = PythonREPLTool()
|
669 |
|
670 |
tool_options = ["ArXiv", "Wikipedia", "Python_REPL", "Retrieval"]
|
671 |
+
|
672 |
tool_dictionary = {
|
673 |
+
"ArXiv": arxiv,
|
674 |
+
"Wikipedia": wikipedia,
|
675 |
+
"Python_REPL": python_repl
|
|
|
676 |
}
|
677 |
|
678 |
+
if st.session_state.retriever_tool:
|
679 |
+
tool_dictionary["Retrieval"] = st.session_state.retriever_tool
|
680 |
+
|
681 |
+
|
682 |
if st.session_state.bing_subscription_validity:
|
683 |
search = BingSearchAPIWrapper()
|
684 |
elif st.session_state.google_cse_id_validity:
|