jcleee commited on
Commit
f0182ec
·
verified ·
1 Parent(s): 338b6af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def search_web(query:str)-> str: #it's import to specify the return type
13
  """Allows search through DuckDuckGo
14
  Args:
15
  query: what you want to search
@@ -55,7 +55,7 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer, search_web], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def web_search(query:str)-> str: #it's import to specify the return type
13
  """Allows search through DuckDuckGo
14
  Args:
15
  query: what you want to search
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[final_answer, web_search], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,