Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,6 +78,8 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 78 |
|
| 79 |
|
| 80 |
final_answer = FinalAnswerTool()
|
|
|
|
|
|
|
| 81 |
|
| 82 |
# 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:
|
| 83 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
@@ -101,8 +103,8 @@ agent = CodeAgent(
|
|
| 101 |
tools=[final_answer,
|
| 102 |
get_current_time_in_timezone,
|
| 103 |
get_weather,
|
| 104 |
-
|
| 105 |
-
|
| 106 |
max_steps=6,
|
| 107 |
verbosity_level=1,
|
| 108 |
grammar=None,
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
final_answer = FinalAnswerTool()
|
| 81 |
+
search_tool = DuckDuckGoSearchTool()
|
| 82 |
+
visit_webpage = visit_webpage()
|
| 83 |
|
| 84 |
# 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:
|
| 85 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
|
|
|
| 103 |
tools=[final_answer,
|
| 104 |
get_current_time_in_timezone,
|
| 105 |
get_weather,
|
| 106 |
+
search_tool,
|
| 107 |
+
search_tool], ## add your tools here (don't remove final answer)
|
| 108 |
max_steps=6,
|
| 109 |
verbosity_level=1,
|
| 110 |
grammar=None,
|