Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,6 +54,9 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
54 |
|
55 |
final_answer = FinalAnswerTool()
|
56 |
|
|
|
|
|
|
|
57 |
# 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:
|
58 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
59 |
|
@@ -73,7 +76,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
73 |
|
74 |
agent = CodeAgent(
|
75 |
model=model,
|
76 |
-
tools=[final_answer, convert_to_binary, get_current_time_in_timezone, image_generation_tool,
|
77 |
max_steps=6,
|
78 |
verbosity_level=1,
|
79 |
grammar=None,
|
|
|
54 |
|
55 |
final_answer = FinalAnswerTool()
|
56 |
|
57 |
+
|
58 |
+
websearch=DuckDuckGoSearchTool()
|
59 |
+
|
60 |
# 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:
|
61 |
# model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
|
62 |
|
|
|
76 |
|
77 |
agent = CodeAgent(
|
78 |
model=model,
|
79 |
+
tools=[final_answer, convert_to_binary, get_current_time_in_timezone, image_generation_tool,websearch], ## add your tools here (don't remove final answer)
|
80 |
max_steps=6,
|
81 |
verbosity_level=1,
|
82 |
grammar=None,
|