Rayen128 commited on
Commit
f2a6c1e
·
verified ·
1 Parent(s): 0abebcc

Added Image & Timezone tools (?)

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -43,6 +43,9 @@ custom_role_conversions=None,
43
  )
44
 
45
 
 
 
 
46
  # Import tool from Hub
47
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
48
 
@@ -51,7 +54,7 @@ with open("prompts.yaml", 'r') as stream:
51
 
52
  agent = CodeAgent(
53
  model=model,
54
- tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
55
  max_steps=6,
56
  verbosity_level=1,
57
  grammar=None,
 
43
  )
44
 
45
 
46
+ # Use premade timezone tool
47
+ timezone_tool = get_current_time_in_timezone()
48
+
49
  # Import tool from Hub
50
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
51
 
 
54
 
55
  agent = CodeAgent(
56
  model=model,
57
+ tools=[final_answer, timezone_tool, image_generation_tool], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,