Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from tools.final_answer import FinalAnswerTool
|
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
|
|
11 |
@tool
|
12 |
def my_custom_tool(search_query: str, generate_image: bool = False) -> str:
|
13 |
"""A tool that combines web search and optional image generation
|
@@ -73,7 +74,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
73 |
|
74 |
agent = CodeAgent(
|
75 |
model=model,
|
76 |
-
tools=[final_answer], ## add your tools here (don't remove final answer)
|
77 |
max_steps=6,
|
78 |
verbosity_level=1,
|
79 |
grammar=None,
|
|
|
8 |
from Gradio_UI import GradioUI
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
+
# Replace this part in app.py
|
12 |
@tool
|
13 |
def my_custom_tool(search_query: str, generate_image: bool = False) -> str:
|
14 |
"""A tool that combines web search and optional image generation
|
|
|
74 |
|
75 |
agent = CodeAgent(
|
76 |
model=model,
|
77 |
+
tools=[final_answer, my_custom_tool], ## add your tools here (don't remove final answer)
|
78 |
max_steps=6,
|
79 |
verbosity_level=1,
|
80 |
grammar=None,
|