Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,14 +8,9 @@ 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 |
-
|
12 |
-
|
13 |
-
|
14 |
-
"""A tool that assesses if you have the info needed to provide the time
|
15 |
-
Args:
|
16 |
-
arg1: check if you have the time
|
17 |
-
arg2: if not, ask the city. Then check the city time zone
|
18 |
-
"""
|
19 |
|
20 |
|
21 |
@tool
|
@@ -56,7 +51,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
56 |
|
57 |
agent = CodeAgent(
|
58 |
model=model,
|
59 |
-
tools=[final_answer, get_current_time_in_timezone,my_custom_tool,image_generation_tool,
|
60 |
max_steps=6,
|
61 |
verbosity_level=1,
|
62 |
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 |
+
|
12 |
+
search_tool = DuckDuckGoSearchTool()
|
13 |
+
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
|
16 |
@tool
|
|
|
51 |
|
52 |
agent = CodeAgent(
|
53 |
model=model,
|
54 |
+
tools=[final_answer, get_current_time_in_timezone,my_custom_tool,image_generation_tool, search_tool], ## add your tools here (don't remove final answer)
|
55 |
max_steps=6,
|
56 |
verbosity_level=1,
|
57 |
grammar=None,
|