Spaces:
Sleeping
Sleeping
delete coding tool
Browse files
app.py
CHANGED
|
@@ -53,14 +53,13 @@ custom_role_conversions=None,
|
|
| 53 |
# Import tool from Hub
|
| 54 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 55 |
search_tool = DuckDuckGoSearchTool()
|
| 56 |
-
coding_tool = CodeAgent
|
| 57 |
|
| 58 |
with open("prompts.yaml", 'r') as stream:
|
| 59 |
prompt_templates = yaml.safe_load(stream)
|
| 60 |
|
| 61 |
agent = CodeAgent(
|
| 62 |
model=model,
|
| 63 |
-
tools=[final_answer,get_current_time_in_timezone,image_generation_tool,search_tool
|
| 64 |
max_steps=6,
|
| 65 |
verbosity_level=1,
|
| 66 |
grammar=None,
|
|
|
|
| 53 |
# Import tool from Hub
|
| 54 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 55 |
search_tool = DuckDuckGoSearchTool()
|
|
|
|
| 56 |
|
| 57 |
with open("prompts.yaml", 'r') as stream:
|
| 58 |
prompt_templates = yaml.safe_load(stream)
|
| 59 |
|
| 60 |
agent = CodeAgent(
|
| 61 |
model=model,
|
| 62 |
+
tools=[final_answer,get_current_time_in_timezone,image_generation_tool,search_tool], ## add your tools here (don't remove final answer)
|
| 63 |
max_steps=6,
|
| 64 |
verbosity_level=1,
|
| 65 |
grammar=None,
|