faiyazansariusa commited on
Commit
fc0b30f
·
verified ·
1 Parent(s): 4932a1e

Update app.py

Browse files

Added two new tools

Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,7 +37,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
37
 
38
 
39
 
40
-
 
41
  final_answer = FinalAnswerTool()
42
 
43
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
@@ -59,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
59
 
60
  agent = CodeAgent(
61
  model=model,
62
- tools=[final_answer], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,
 
37
 
38
 
39
 
40
+ sunrise_sunset_tool = GetSunriseSunsetTimes()
41
+ web_search = DuckDuckGoSearchTool()
42
  final_answer = FinalAnswerTool()
43
 
44
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
 
60
 
61
  agent = CodeAgent(
62
  model=model,
63
+ tools=[final_answer,sunrise_sunset_tool,web_search], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,