Reality123b commited on
Commit
ea16a5e
·
verified ·
1 Parent(s): ed4006b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -164,7 +164,7 @@ def tool_search_web(query: str, num_results: int = NUM_RESULTS, safesearch: str
164
  del kwargs["time"]
165
  results = [r for r in ddgs.text(**kwargs)]
166
  if results:
167
- return [{"title": r["title"], "snippet": r["body"], "url": r["href"]}] for r in results]
168
  return []
169
  except Exception as e:
170
  logger.error(f"DuckDuckGo search error: {e}")
 
164
  del kwargs["time"]
165
  results = [r for r in ddgs.text(**kwargs)]
166
  if results:
167
+ return [{"title": r["title"], "snippet": r["body"], "url": r["href"]} for r in results]
168
  return []
169
  except Exception as e:
170
  logger.error(f"DuckDuckGo search error: {e}")