lpolich commited on
Commit
d8b9c25
·
verified ·
1 Parent(s): 38cc915

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -5,6 +5,9 @@ import requests
5
  import pytz
6
  import yaml
7
  from tools.final_answer import FinalAnswerTool
 
 
 
8
 
9
  from Gradio_UI import GradioUI
10
  from gradio_client import Client
@@ -58,6 +61,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
58
 
59
 
60
  final_answer = FinalAnswerTool()
 
 
 
61
 
62
  # 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:
63
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -86,7 +92,7 @@ with open("prompts.yaml", 'r') as stream:
86
 
87
  agent = CodeAgent(
88
  model=model,
89
- tools=[final_answer,image_generation_tool], ## add your tools here (don't remove final answer)
90
  max_steps=6,
91
  verbosity_level=1,
92
  grammar=None,
 
5
  import pytz
6
  import yaml
7
  from tools.final_answer import FinalAnswerTool
8
+ from tools.visit_webpage import VisitWebpageTool
9
+ from tools.web_search import DuckDuckGoSearchTool
10
+
11
 
12
  from Gradio_UI import GradioUI
13
  from gradio_client import Client
 
61
 
62
 
63
  final_answer = FinalAnswerTool()
64
+ visit_webpage = VisitWebpageTool()
65
+ web_search = DuckDuckGoSearchTool()
66
+
67
 
68
  # 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:
69
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
92
 
93
  agent = CodeAgent(
94
  model=model,
95
+ tools=[final_answer,image_generation_tool,visit_webpage,web_search], ## add your tools here (don't remove final answer)
96
  max_steps=6,
97
  verbosity_level=1,
98
  grammar=None,