vinhnx90 commited on
Commit
205da6b
·
verified ·
1 Parent(s): c8b27e4

Update search_tool

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,6 +55,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
55
 
56
 
57
  final_answer = FinalAnswerTool()
 
58
 
59
  # 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
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -75,7 +76,7 @@ with open("prompts.yaml", 'r') as stream:
75
 
76
  agent = CodeAgent(
77
  model=model,
78
- tools=[final_answer, get_current_time_in_timezone, image_generation_tool, translate_text, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
79
  max_steps=6,
80
  verbosity_level=1,
81
  grammar=None,
 
55
 
56
 
57
  final_answer = FinalAnswerTool()
58
+ search_tool = DuckDuckGoSearchTool()
59
 
60
  # 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:
61
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
76
 
77
  agent = CodeAgent(
78
  model=model,
79
+ tools=[final_answer, get_current_time_in_timezone, image_generation_tool, translate_text, search_tool], ## add your tools here (don't remove final answer)
80
  max_steps=6,
81
  verbosity_level=1,
82
  grammar=None,