Hemanthkt commited on
Commit
3295cdc
·
verified ·
1 Parent(s): 787141d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,6 +47,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
47
 
48
 
49
  final_answer = FinalAnswerTool()
 
50
 
51
  # 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:
52
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -67,8 +68,7 @@ with open("prompts.yaml", 'r') as stream:
67
 
68
  agent = CodeAgent(
69
  model=model,
70
- tools=[final_answer,visit_webpage_tool,
71
- search_tool,get_stock_news], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
47
 
48
 
49
  final_answer = FinalAnswerTool()
50
+ search_tool = DuckDuckGoSearchTool(max_results=10)
51
 
52
  # 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:
53
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
68
 
69
  agent = CodeAgent(
70
  model=model,
71
+ tools=[final_answer,search_tool,get_stock_news], ## add your tools here (don't remove final answer)
 
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,