Andrew-Gl commited on
Commit
3a01c5e
·
verified ·
1 Parent(s): 90615e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -43,6 +43,10 @@ def get_current_time_in_timezone(timezone: str) -> str:
43
 
44
 
45
  final_answer = FinalAnswerTool()
 
 
 
 
46
 
47
  # 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:
48
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -63,7 +67,7 @@ with open("prompts.yaml", 'r') as stream:
63
 
64
  agent = CodeAgent(
65
  model=model,
66
- tools=[final_answer], ## add your tools here (don't remove final answer)
67
  max_steps=6,
68
  verbosity_level=1,
69
  grammar=None,
 
43
 
44
 
45
  final_answer = FinalAnswerTool()
46
+ web_search=DuckDuckGoSearchTool()
47
+ visit_webpage = VisitWebpageTool()
48
+ compare_values = compare_tool()
49
+ get_current_time = get_current_time_in_timezone()
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
 
68
  agent = CodeAgent(
69
  model=model,
70
+ tools=[final_answer, web_search, visit_webpage,compare_values, get_current_time], ## add your tools here (don't remove final answer)
71
  max_steps=6,
72
  verbosity_level=1,
73
  grammar=None,