Spaces:
Sleeping
Sleeping
clementmandron
commited on
Commit
·
dc442fc
1
Parent(s):
fb3e254
update
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import requests
|
|
5 |
import pytz
|
6 |
import yaml
|
7 |
from tools.final_answer import FinalAnswerTool
|
|
|
8 |
|
9 |
from Gradio_UI import GradioUI
|
10 |
|
@@ -57,7 +58,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
57 |
|
58 |
agent = CodeAgent(
|
59 |
model=model,
|
60 |
-
tools=[final_answer, image_generation_tool], ## add your tools here (don't remove final answer)
|
61 |
max_steps=6,
|
62 |
verbosity_level=1,
|
63 |
grammar=None,
|
|
|
5 |
import pytz
|
6 |
import yaml
|
7 |
from tools.final_answer import FinalAnswerTool
|
8 |
+
from tools.web_search import DuckDuckGoSearchTool
|
9 |
|
10 |
from Gradio_UI import GradioUI
|
11 |
|
|
|
58 |
|
59 |
agent = CodeAgent(
|
60 |
model=model,
|
61 |
+
tools=[final_answer, image_generation_tool,DuckDuckGoSearchTool()], ## add your tools here (don't remove final answer)
|
62 |
max_steps=6,
|
63 |
verbosity_level=1,
|
64 |
grammar=None,
|