Andrew-Gl commited on
Commit
a68f43d
·
verified ·
1 Parent(s): 63c375c

Update app.py

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