pbbu commited on
Commit
917b201
·
verified ·
1 Parent(s): 7fe0bff

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
- search = DuckDuckGoSearchTool()
38
 
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, get_current_time_in_timezone, search], ## 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
+ web_search = DuckDuckGoSearchTool()
38
 
39
  final_answer = FinalAnswerTool()
40
 
 
57
 
58
  agent = CodeAgent(
59
  model=model,
60
+ tools=[final_answer, get_current_time_in_timezone, web_search], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,