Spaces:
Sleeping
Sleeping
adding feature "image_generation_tool" into agent
Browse files
app.py
CHANGED
|
@@ -54,7 +54,11 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
-
tools=[
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
max_steps=6,
|
| 59 |
verbosity_level=1,
|
| 60 |
grammar=None,
|
|
|
|
| 54 |
|
| 55 |
agent = CodeAgent(
|
| 56 |
model=model,
|
| 57 |
+
tools=[
|
| 58 |
+
final_answer,
|
| 59 |
+
search_tool,
|
| 60 |
+
image_generation_tool,
|
| 61 |
+
], ## add your tools here (don't remove final answer)
|
| 62 |
max_steps=6,
|
| 63 |
verbosity_level=1,
|
| 64 |
grammar=None,
|