Ulduz commited on
Commit
fa60881
·
verified ·
1 Parent(s): ffbe63e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ def search_web(query:str)-> str: #it's import to specify the return type
16
  query: the question asked by user that we can search the web for.
17
  """
18
  search = DuckDuckGoSearchTool()
19
- output['content'] = search.invoke(query)
20
 
21
  return output
22
 
@@ -57,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
57
 
58
  agent = CodeAgent(
59
  model=model,
60
- tools=[final_answer, get_current_time_in_timezone,image_generation_tool,DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,
 
16
  query: the question asked by user that we can search the web for.
17
  """
18
  search = DuckDuckGoSearchTool()
19
+ output['content'] = search.forward(query)
20
 
21
  return output
22
 
 
57
 
58
  agent = CodeAgent(
59
  model=model,
60
+ tools=[final_answer, get_current_time_in_timezone,image_generation_tool,search_web], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,