Spaces:
Sleeping
Sleeping
Upload agent
Browse files- tools/visit_webpage.py +1 -1
- tools/web_search.py +1 -1
tools/visit_webpage.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from typing import Any, Optional
|
2 |
from smolagents.tools import Tool
|
3 |
import re
|
4 |
-
import requests
|
5 |
import markdownify
|
|
|
6 |
|
7 |
class VisitWebpageTool(Tool):
|
8 |
name = "visit_webpage"
|
|
|
1 |
from typing import Any, Optional
|
2 |
from smolagents.tools import Tool
|
3 |
import re
|
|
|
4 |
import markdownify
|
5 |
+
import requests
|
6 |
|
7 |
class VisitWebpageTool(Tool):
|
8 |
name = "visit_webpage"
|
tools/web_search.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
from typing import Any, Optional
|
2 |
from smolagents.tools import Tool
|
3 |
-
import ddgs
|
4 |
import time
|
|
|
5 |
|
6 |
class DuckDuckGoSearchTool(Tool):
|
7 |
"""Web search tool that performs searches using the DuckDuckGo search engine.
|
|
|
1 |
from typing import Any, Optional
|
2 |
from smolagents.tools import Tool
|
|
|
3 |
import time
|
4 |
+
import ddgs
|
5 |
|
6 |
class DuckDuckGoSearchTool(Tool):
|
7 |
"""Web search tool that performs searches using the DuckDuckGo search engine.
|