Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,13 +55,10 @@ image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_co
|
|
| 55 |
|
| 56 |
with open("prompts.yaml", 'r') as stream:
|
| 57 |
prompt_templates = yaml.safe_load(stream)
|
| 58 |
-
|
| 59 |
-
print("calculate is Tool:", isinstance(calculate, Tool))
|
| 60 |
-
print("time tool is Tool:", isinstance(get_current_time_in_timezone, Tool))
|
| 61 |
-
print("ddg is Tool:", isinstance(DuckDuckGoSearchTool(), Tool))
|
| 62 |
agent = CodeAgent(
|
| 63 |
model=model,
|
| 64 |
-
tools=[final_answer,calculate,get_current_time_in_timezone,
|
| 65 |
max_steps=6,
|
| 66 |
verbosity_level=1,
|
| 67 |
grammar=None,
|
|
|
|
| 55 |
|
| 56 |
with open("prompts.yaml", 'r') as stream:
|
| 57 |
prompt_templates = yaml.safe_load(stream)
|
| 58 |
+
|
|
|
|
|
|
|
|
|
|
| 59 |
agent = CodeAgent(
|
| 60 |
model=model,
|
| 61 |
+
tools=[final_answer,calculate,get_current_time_in_timezone,web_search], ## add your tools here (don't remove final answer)
|
| 62 |
max_steps=6,
|
| 63 |
verbosity_level=1,
|
| 64 |
grammar=None,
|