Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ import smolagents
|
|
12 |
import playwright.sync_api as playwright
|
13 |
import re
|
14 |
from tools.final_answer import FinalAnswerTool
|
15 |
-
from tools.
|
16 |
|
17 |
# Initialize the final answer tool
|
18 |
final_answer = FinalAnswerTool()
|
@@ -32,7 +32,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
32 |
# Create the agent
|
33 |
agent = CodeAgent(
|
34 |
model=model,
|
35 |
-
tools=[final_answer,
|
36 |
max_steps=6,
|
37 |
verbosity_level=1,
|
38 |
grammar=None,
|
|
|
12 |
import playwright.sync_api as playwright
|
13 |
import re
|
14 |
from tools.final_answer import FinalAnswerTool
|
15 |
+
from tools.visit_webpage import VisitWebpageTool
|
16 |
|
17 |
# Initialize the final answer tool
|
18 |
final_answer = FinalAnswerTool()
|
|
|
32 |
# Create the agent
|
33 |
agent = CodeAgent(
|
34 |
model=model,
|
35 |
+
tools=[final_answer, VisitWebpageTool()],
|
36 |
max_steps=6,
|
37 |
verbosity_level=1,
|
38 |
grammar=None,
|