paddoum commited on
Commit
20603ca
·
verified ·
1 Parent(s): 632d0e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -37,6 +37,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
37
 
38
 
39
  final_answer = FinalAnswerTool()
 
40
 
41
 
42
  # 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:
@@ -58,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
58
 
59
  agent = CodeAgent(
60
  model=model,
61
- tools=[final_answer,image_generation_tool],## add your tools here (don't remove final answer)
62
  max_steps=6,
63
  verbosity_level=1,
64
  grammar=None,
 
37
 
38
 
39
  final_answer = FinalAnswerTool()
40
+ search_tool = DuckDuckGoSearchTool()
41
 
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
 
60
  agent = CodeAgent(
61
  model=model,
62
+ tools=[final_answer,image_generation_tool,search_tool],## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,