Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
|
@@ -128,7 +128,7 @@ def search_wikipedia(query: str, page_title: str, language: str) -> str:
|
|
| 128 |
def duckduckgo_search(query: str) -> str:
|
| 129 |
"""Use DuckDuckGo to search the web for up-to-date information.
|
| 130 |
Args:
|
| 131 |
-
query: The query to search for on the web
|
| 132 |
"""
|
| 133 |
url = "https://api.duckduckgo.com/"
|
| 134 |
params = {
|
|
|
|
| 128 |
def duckduckgo_search(query: str) -> str:
|
| 129 |
"""Use DuckDuckGo to search the web for up-to-date information.
|
| 130 |
Args:
|
| 131 |
+
query: The query to search for on the web. It may be a literal url (e.g. https://www.youtube.com/watch?v=7ybEg14CP1g)
|
| 132 |
"""
|
| 133 |
url = "https://api.duckduckgo.com/"
|
| 134 |
params = {
|