Spaces:
Sleeping
Sleeping
Zanqi commited on
Commit ·
d775aa7
1
Parent(s): 8b27234
Add VisitWebpageTool to agent for enhanced functionality
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
|
@@ -64,6 +65,7 @@ agent = CodeAgent(
|
|
| 64 |
final_answer,
|
| 65 |
get_current_time_in_timezone,
|
| 66 |
DuckDuckGoSearchTool(),
|
|
|
|
| 67 |
], ## add your tools here (don't remove final answer)
|
| 68 |
max_steps=6,
|
| 69 |
verbosity_level=1,
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
+
from tools.visit_webpage import VisitWebpageTool
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
|
|
|
|
| 65 |
final_answer,
|
| 66 |
get_current_time_in_timezone,
|
| 67 |
DuckDuckGoSearchTool(),
|
| 68 |
+
VisitWebpageTool(),
|
| 69 |
], ## add your tools here (don't remove final answer)
|
| 70 |
max_steps=6,
|
| 71 |
verbosity_level=1,
|