shopkeeper commited on
Commit
7ca12eb
·
verified ·
1 Parent(s): aa996e7

changed duckduckgosearch to web_search as it was written that way in the prompt yaml file.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
40
 
41
 
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:
45
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
46
 
@@ -60,7 +60,7 @@ with open("prompts.yaml", 'r') as stream:
60
 
61
  agent = CodeAgent(
62
  model=model,
63
- tools=[final_answer, get_current_time_in_timezone, DuckDuckGoSearchTool(), get_current_sentiment], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,
 
40
 
41
 
42
  final_answer = FinalAnswerTool()
43
+ web_search = DuckDuckGoSearchTool()
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:
45
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
46
 
 
60
 
61
  agent = CodeAgent(
62
  model=model,
63
+ tools=[final_answer, get_current_time_in_timezone, web_search, get_current_sentiment], ## add your tools here (don't remove final answer)
64
  max_steps=6,
65
  verbosity_level=1,
66
  grammar=None,