Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,11 @@ search_tool = DuckDuckGoSearchTool() # Initialize outside the function
|
|
| 10 |
@tool
|
| 11 |
def lookup_fact(query: str) -> str:
|
| 12 |
"""
|
| 13 |
-
A tool to look up facts using DuckDuckGo
|
| 14 |
Args:
|
| 15 |
-
query: The search query to
|
| 16 |
Returns:
|
| 17 |
-
The search result
|
| 18 |
"""
|
| 19 |
try:
|
| 20 |
results = search_tool.use(query)
|
|
|
|
| 10 |
@tool
|
| 11 |
def lookup_fact(query: str) -> str:
|
| 12 |
"""
|
| 13 |
+
A tool to look up facts and information from the web using DuckDuckGo.
|
| 14 |
Args:
|
| 15 |
+
query: The search query to use for finding information.
|
| 16 |
Returns:
|
| 17 |
+
The top search result from DuckDuckGo, or a message indicating no results were found.
|
| 18 |
"""
|
| 19 |
try:
|
| 20 |
results = search_tool.use(query)
|