dsorrowt commited on
Commit
e3fe822
·
verified ·
1 Parent(s): 8f84665

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -7,7 +7,8 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  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 get_penguin_facts(facts_num: int = 1)-> str: #it's import to specify the return type
13
  """A tool that gives some facts about penguins
@@ -60,7 +61,7 @@ with open("prompts.yaml", 'r') as stream:
60
 
61
  agent = CodeAgent(
62
  model=model,
63
- tools=[DuckDuckGoSearchTool, get_current_time_in_timezone, get_penguin_facts, final_answer], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,
 
7
 
8
  from Gradio_UI import GradioUI
9
 
10
+ duckduckgosearch = DuckDuckGoSearchTool()
11
+
12
  @tool
13
  def get_penguin_facts(facts_num: int = 1)-> str: #it's import to specify the return type
14
  """A tool that gives some facts about penguins
 
61
 
62
  agent = CodeAgent(
63
  model=model,
64
+ tools=[duckduckgosearch, get_current_time_in_timezone, get_penguin_facts, final_answer], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,