Spaces:
Configuration error
Configuration error
Update agent2.py
Browse files
agent2.py
CHANGED
@@ -14,6 +14,7 @@ import helium
|
|
14 |
from PIL import Image
|
15 |
from io import BytesIO
|
16 |
from time import sleep
|
|
|
17 |
|
18 |
|
19 |
class BM25RetrieverTool(Tool):
|
@@ -238,6 +239,7 @@ Your final answer should be as few words as possible, a number, or a comma-separ
|
|
238 |
)
|
239 |
self.agent.tools = [tool for tool in self.agent.tools
|
240 |
if not isinstance(tool, DuckDuckGoSearchTool)]
|
|
|
241 |
|
242 |
def initialize_browser(self):
|
243 |
"""Initialize browser for web automation tasks"""
|
|
|
14 |
from PIL import Image
|
15 |
from io import BytesIO
|
16 |
from time import sleep
|
17 |
+
from smolagents import DuckDuckGoSearchTool
|
18 |
|
19 |
|
20 |
class BM25RetrieverTool(Tool):
|
|
|
239 |
)
|
240 |
self.agent.tools = [tool for tool in self.agent.tools
|
241 |
if not isinstance(tool, DuckDuckGoSearchTool)]
|
242 |
+
print(self.agent.tools)
|
243 |
|
244 |
def initialize_browser(self):
|
245 |
"""Initialize browser for web automation tasks"""
|