erk8989 commited on
Commit
bc46b1c
·
verified ·
1 Parent(s): e079cf8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -48,8 +48,6 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
48
  # The rest of the tools
49
  search_web = DuckDuckGoSearchTool()
50
  visit_page = VisitWebpageTool()
51
- ner = ner_tool()
52
- timezone = get_current_time_in_timezone()
53
  final_answer = FinalAnswerTool()
54
 
55
  # 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:
@@ -68,7 +66,7 @@ with open("prompts.yaml", 'r') as stream:
68
 
69
  agent = CodeAgent(
70
  model=model,
71
- tools=[image_generation_tool, search_web, visit_page, ner, timezone, final_answer], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
48
  # The rest of the tools
49
  search_web = DuckDuckGoSearchTool()
50
  visit_page = VisitWebpageTool()
 
 
51
  final_answer = FinalAnswerTool()
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:
 
66
 
67
  agent = CodeAgent(
68
  model=model,
69
+ tools=[image_generation_tool, search_web, visit_page, ner_tool, get_current_time_in_timezone, final_answer], ## add your tools here (don't remove final answer)
70
  max_steps=6,
71
  verbosity_level=1,
72
  grammar=None,