Kaiser1308 commited on
Commit
62623a2
·
verified ·
1 Parent(s): 2f7e3b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -55,13 +55,10 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
55
 
56
  with open("prompts.yaml", 'r') as stream:
57
  prompt_templates = yaml.safe_load(stream)
58
- from smolagents.tools import Tool
59
- print("calculate is Tool:", isinstance(calculate, Tool))
60
- print("time tool is Tool:", isinstance(get_current_time_in_timezone, Tool))
61
- print("ddg is Tool:", isinstance(DuckDuckGoSearchTool(), Tool))
62
  agent = CodeAgent(
63
  model=model,
64
- tools=[final_answer,calculate,get_current_time_in_timezone,DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
65
  max_steps=6,
66
  verbosity_level=1,
67
  grammar=None,
 
55
 
56
  with open("prompts.yaml", 'r') as stream:
57
  prompt_templates = yaml.safe_load(stream)
58
+
 
 
 
59
  agent = CodeAgent(
60
  model=model,
61
+ tools=[final_answer,calculate,get_current_time_in_timezone,web_search], ## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,