Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def web_search(query: str, max_results: int = 5) -> list:
|
|
52 |
"""Simple DuckDuckGo web search via DDGS"""
|
53 |
try:
|
54 |
with DDGS() as ddgs:
|
55 |
-
return ddgs.text(query, max_results=max_results)
|
56 |
except Exception as e:
|
57 |
return [{"title": "Search failed", "href": "", "body": str(e)}]
|
58 |
|
|
|
52 |
"""Simple DuckDuckGo web search via DDGS"""
|
53 |
try:
|
54 |
with DDGS() as ddgs:
|
55 |
+
return ddgs.text(query, max_results=max_results, backend="lite")
|
56 |
except Exception as e:
|
57 |
return [{"title": "Search failed", "href": "", "body": str(e)}]
|
58 |
|