Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
44 |
|
45 |
|
46 |
final_answer = FinalAnswerTool()
|
|
|
47 |
|
48 |
# 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:
|
49 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
@@ -63,7 +64,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
63 |
|
64 |
agent = CodeAgent(
|
65 |
model=model,
|
66 |
-
tools=[calculator, get_current_time_in_timezone,
|
67 |
max_steps=6,
|
68 |
verbosity_level=1,
|
69 |
grammar=None,
|
|
|
44 |
|
45 |
|
46 |
final_answer = FinalAnswerTool()
|
47 |
+
search_tool = DuckDuckGoSearchTool()
|
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'
|
|
|
64 |
|
65 |
agent = CodeAgent(
|
66 |
model=model,
|
67 |
+
tools=[calculator, get_current_time_in_timezone, search_tool, final_answer], ## add your tools here (don't remove final answer)
|
68 |
max_steps=6,
|
69 |
verbosity_level=1,
|
70 |
grammar=None,
|