nhm-isolate commited on
Commit
fa1fc51
·
verified ·
1 Parent(s): a6af1a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -3,7 +3,8 @@ import datetime
3
  import requests
4
  import pytz
5
  import yaml
6
- from tools.final_answer import FinalAnswerTool, DuckDuckGoSearchTool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
@@ -68,7 +69,7 @@ with open("prompts.yaml", 'r') as stream:
68
 
69
  agent = CodeAgent(
70
  model=model,
71
- tools=[final_answer],## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
3
  import requests
4
  import pytz
5
  import yaml
6
+ from tools.final_answer import FinalAnswerTool
7
+ from tool.web_search import DuckDuckGoSearchTool
8
 
9
  from Gradio_UI import GradioUI
10
 
 
69
 
70
  agent = CodeAgent(
71
  model=model,
72
+ tools=[final_answer, search_result],## add your tools here (don't remove final answer)
73
  max_steps=6,
74
  verbosity_level=1,
75
  grammar=None,