Kaiser1308 commited on
Commit
2f7e3b5
·
verified ·
1 Parent(s): 890a416

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -55,7 +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
-
 
 
 
59
  agent = CodeAgent(
60
  model=model,
61
  tools=[final_answer,calculate,get_current_time_in_timezone,DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
 
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)