ClassicCollins commited on
Commit
751f1e0
·
verified ·
1 Parent(s): 7131f14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
 
37
- new_york_current_timezone = get_current_time_in_timezone
38
  calculator = my_calculator
39
  final_answer = FinalAnswerTool()
40
 
@@ -57,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
57
 
58
  agent = CodeAgent(
59
  model=model,
60
- tools=[final_answer,new_york_current_timezone,calculator], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
 
37
+ current_timezone = get_current_time_in_timezone
38
  calculator = my_calculator
39
  final_answer = FinalAnswerTool()
40
 
 
57
 
58
  agent = CodeAgent(
59
  model=model,
60
+ tools=[final_answer,current_timezone,calculator,image_generation_tool], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,