samih-7 commited on
Commit
a5d6720
·
verified ·
1 Parent(s): 0f23723

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
10
  search_tool = DuckDuckGoSearchTool(max_results=10)
11
 
12
  @tool
13
- def search_web(query:str)-> str:
14
  """A tool that runs a DuckDuckGo search and returns a formatted result.
15
  Args:
16
  query: A string representing the query to search for.
@@ -59,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
59
 
60
  agent = CodeAgent(
61
  model=model,
62
- tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,
 
10
  search_tool = DuckDuckGoSearchTool(max_results=10)
11
 
12
  @tool
13
+ def web_search(query:str)-> str:
14
  """A tool that runs a DuckDuckGo search and returns a formatted result.
15
  Args:
16
  query: A string representing the query to search for.
 
59
 
60
  agent = CodeAgent(
61
  model=model,
62
+ tools=[final_answer, get_current_time_in_timezone, web_search], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,