Banana-Leopard commited on
Commit
985b6ac
·
verified ·
1 Parent(s): 796ba7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -60,7 +60,10 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
60
 
61
  with open("prompts.yaml", 'r') as stream:
62
  prompt_templates = yaml.safe_load(stream)
63
-
 
 
 
64
  agent = CodeAgent(
65
  model=model,
66
  tools=[
@@ -69,7 +72,7 @@ agent = CodeAgent(
69
  # my_custom_tool,
70
  image_generation_tool,
71
  get_current_time_in_timezone,
72
- DuckDuckGoSearchTool
73
  ], ## add your tools here (don't remove final answer)
74
  max_steps=6,
75
  verbosity_level=1,
 
60
 
61
  with open("prompts.yaml", 'r') as stream:
62
  prompt_templates = yaml.safe_load(stream)
63
+
64
+ for t in [final_answer, rick_roll_tool, my_custom_tool, image_generation_tool, get_current_time_in_timezone, DuckDuckGoSearchTool]:
65
+ print(t, type(t))
66
+
67
  agent = CodeAgent(
68
  model=model,
69
  tools=[
 
72
  # my_custom_tool,
73
  image_generation_tool,
74
  get_current_time_in_timezone,
75
+ DuckDuckGoSearchTool,
76
  ], ## add your tools here (don't remove final answer)
77
  max_steps=6,
78
  verbosity_level=1,