nangelov commited on
Commit
4381f4e
·
verified ·
1 Parent(s): 2ab9a6c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,6 +5,7 @@ import requests
5
  import pytz
6
  import yaml
7
  from tools.final_answer import FinalAnswerTool
 
8
 
9
  from Gradio_UI import GradioUI
10
 
@@ -87,8 +88,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
87
 
88
 
89
  final_answer = FinalAnswerTool()
90
- fetch_football_results = search_Competition_Matches_Results_By_Date()
91
- get_current_time = get_current_time_in_timezone()
92
 
93
  # 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:
94
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -109,7 +109,7 @@ with open("prompts.yaml", 'r') as stream:
109
 
110
  agent = CodeAgent(
111
  model=model,
112
- tools=[final_answer, fetch_football_results, get_current_time], ## add your tools here (don't remove final answer)
113
  max_steps=6,
114
  verbosity_level=1,
115
  grammar=None,
 
5
  import pytz
6
  import yaml
7
  from tools.final_answer import FinalAnswerTool
8
+ from tools.visit_webpage import VisitWebpageTool
9
 
10
  from Gradio_UI import GradioUI
11
 
 
88
 
89
 
90
  final_answer = FinalAnswerTool()
91
+ visit_webpage = VisitWebpageTool()
 
92
 
93
  # 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:
94
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
109
 
110
  agent = CodeAgent(
111
  model=model,
112
+ tools=[final_answer, visit_webpage, search_Competition_Matches_Results_By_Date, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
113
  max_steps=6,
114
  verbosity_level=1,
115
  grammar=None,