Edenbaba commited on
Commit
2cd9c6b
·
verified ·
1 Parent(s): 4060ac5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,10 +116,10 @@ image_generation_tool2 = Tool.from_space(
116
 
117
 
118
  final_answer = FinalAnswerTool()
119
- web_search = DuckDuckGoSearchTool()
120
  visit_webpage = VisitWebpageTool()
121
  python_tool = PythonInterpreterTool()
122
 
 
123
  google_search_tool = GoogleSearchTool()
124
 
125
  # 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:
@@ -139,7 +139,7 @@ with open("prompts.yaml", 'r') as stream:
139
 
140
  agent = CodeAgent(
141
  model=model,
142
- tools=[final_answer, my_custom_tool, get_current_time_in_timezone, web_search, visit_webpage, google_search_tool,
143
  python_tool, image_generation_tool, image_generation_tool2,
144
  suggest_menu, catering_service_tool, SuperheroPartyThemeTool()], ## add your tools here (don't remove final answer)
145
  max_steps=10,
 
116
 
117
 
118
  final_answer = FinalAnswerTool()
 
119
  visit_webpage = VisitWebpageTool()
120
  python_tool = PythonInterpreterTool()
121
 
122
+ # web_search = DuckDuckGoSearchTool()
123
  google_search_tool = GoogleSearchTool()
124
 
125
  # 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:
 
139
 
140
  agent = CodeAgent(
141
  model=model,
142
+ tools=[final_answer, my_custom_tool, get_current_time_in_timezone, visit_webpage, google_search_tool,
143
  python_tool, image_generation_tool, image_generation_tool2,
144
  suggest_menu, catering_service_tool, SuperheroPartyThemeTool()], ## add your tools here (don't remove final answer)
145
  max_steps=10,