p3pp01 commited on
Commit
46f0412
·
1 Parent(s): 4ea8d16
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -11,6 +11,7 @@ import urllib.request
11
  from dotenv import load_dotenv
12
  from tools.final_answer import FinalAnswerTool
13
  from tools.weather import WeatherTool
 
14
 
15
  from Gradio_UI import GradioUI
16
 
@@ -47,6 +48,8 @@ final_answer = FinalAnswerTool()
47
 
48
  weather_data = WeatherTool()
49
 
 
 
50
  # 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:
51
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
52
 
 
1
+ from smolagents import CodeAgent, HfApiModel, load_tool, tool
2
  import datetime
3
  import requests
4
  import pytz
 
11
  from dotenv import load_dotenv
12
  from tools.final_answer import FinalAnswerTool
13
  from tools.weather import WeatherTool
14
+ from tools.web_search import DuckDuckGoSearchTool
15
 
16
  from Gradio_UI import GradioUI
17
 
 
48
 
49
  weather_data = WeatherTool()
50
 
51
+ web_search = DuckDuckGoSearchTool()
52
+
53
  # 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:
54
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
55