ValentinGuigon commited on
Commit
29cac4e
·
verified ·
1 Parent(s): 5258231

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ from Gradio_UI import GradioUI
11
  # Edit: now updated to conduct a web search
12
 
13
  @tool
14
- def make_web_search(query: str) -> str:
15
  """A tool that conducts a web search using DuckDuckGo
16
  Args:
17
  query: A string representing a valid query for a web search.
@@ -78,7 +78,7 @@ with open("prompts.yaml", 'r') as stream:
78
 
79
  agent = CodeAgent(
80
  model=model,
81
- tools=[final_answer], ## add your tools here (don't remove final answer)
82
  max_steps=6,
83
  verbosity_level=1,
84
  grammar=None,
 
11
  # Edit: now updated to conduct a web search
12
 
13
  @tool
14
+ def web_search(query: str) -> str:
15
  """A tool that conducts a web search using DuckDuckGo
16
  Args:
17
  query: A string representing a valid query for a web search.
 
78
 
79
  agent = CodeAgent(
80
  model=model,
81
+ tools=[final_answer, web_search, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
82
  max_steps=6,
83
  verbosity_level=1,
84
  grammar=None,