WilsonMungai commited on
Commit
4e1a81f
·
verified ·
1 Parent(s): 4b1f4cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,7 @@ import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
 
7
 
8
  from Gradio_UI import GradioUI
9
 
@@ -55,6 +56,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'
@@ -78,6 +80,7 @@ agent = CodeAgent(
78
  tools=[
79
  final_answer,
80
  wikipedia_summary,
 
81
  ], ## add your tools here (don't remove final answer)
82
  max_steps=6,
83
  verbosity_level=1,
 
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
7
+ from tools.web_search import DuckDuckGoSearchTool
8
 
9
  from Gradio_UI import GradioUI
10
 
 
56
 
57
 
58
  final_answer = FinalAnswerTool()
59
+ web_search = DuckDuckGoSearchTool()
60
 
61
  # 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:
62
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
80
  tools=[
81
  final_answer,
82
  wikipedia_summary,
83
+ web_search,
84
  ], ## add your tools here (don't remove final answer)
85
  max_steps=6,
86
  verbosity_level=1,