Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from duckduckgo_search import DDGS
|
|
7 |
|
8 |
|
9 |
# Define a DuckDuckGo tool
|
10 |
-
@
|
11 |
def duck_search(query: str) -> str:
|
12 |
"""Searches the web using DuckDuckGo for the given query and returns the top results."""
|
13 |
with DDGS() as ddgs:
|
|
|
7 |
|
8 |
|
9 |
# Define a DuckDuckGo tool
|
10 |
+
@tool
|
11 |
def duck_search(query: str) -> str:
|
12 |
"""Searches the web using DuckDuckGo for the given query and returns the top results."""
|
13 |
with DDGS() as ddgs:
|