Spaces:
Sleeping
Sleeping
Commit
·
2f49d42
1
Parent(s):
dbbd74b
Update app.py
Browse files
app.py
CHANGED
|
@@ -120,9 +120,7 @@ def main():
|
|
| 120 |
# initialize agent
|
| 121 |
agent = initialize_agent(
|
| 122 |
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
|
| 123 |
-
tools=[
|
| 124 |
-
if mode == "Agent with AskHuman tool"
|
| 125 |
-
else [db_search_tool,google_searchtool],
|
| 126 |
llm=llm,
|
| 127 |
verbose=True,
|
| 128 |
max_iterations=5,
|
|
|
|
| 120 |
# initialize agent
|
| 121 |
agent = initialize_agent(
|
| 122 |
agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
|
| 123 |
+
tools=[db_search_tool,google_searchtool],
|
|
|
|
|
|
|
| 124 |
llm=llm,
|
| 125 |
verbose=True,
|
| 126 |
max_iterations=5,
|