Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,7 +119,7 @@ final_answer = FinalAnswerTool()
|
|
| 119 |
visit_webpage = VisitWebpageTool()
|
| 120 |
python_tool = PythonInterpreterTool()
|
| 121 |
|
| 122 |
-
web_search_ddgs = DuckDuckGoSearchTool() # change its name to "web_search_ddgs" inside the code. Otherwise it cannot be used together with blow GoogleSearchTool which has default tool name of 'web_search'
|
| 123 |
google_search_tool = GoogleSearchTool() # default tool name is "web_search"
|
| 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, 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,
|
|
|
|
| 119 |
visit_webpage = VisitWebpageTool()
|
| 120 |
python_tool = PythonInterpreterTool()
|
| 121 |
|
| 122 |
+
# web_search_ddgs = DuckDuckGoSearchTool() # change its name to "web_search_ddgs" inside the code. Otherwise it cannot be used together with blow GoogleSearchTool which has default tool name of 'web_search'
|
| 123 |
google_search_tool = GoogleSearchTool() # default tool name is "web_search"
|
| 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,
|