antmontieri commited on
Commit
770acb8
·
verified ·
1 Parent(s): a661a66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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