davidapplyingml commited on
Commit
7a2514a
·
verified ·
1 Parent(s): 49428c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -35,13 +35,13 @@ def get_current_time_in_timezone(timezone: str) -> str:
35
 
36
  @tool
37
  def web_search(query: str) -> str:
38
- """Performs a web search using DuckDuckGo and return the first result
39
  Args:
40
- query: The search query string
41
  """
42
  search_tool = DuckDuckGoSearchTool()
43
  results = search_tool(query)
44
-
45
  if isinstance(results, list) and len(results) > 0:
46
  return f"Top result for '{query}': {results[0]['body']} (link: {results[0]['href']})"
47
  else:
 
35
 
36
  @tool
37
  def web_search(query: str) -> str:
38
+ """Perform a web search using DuckDuckGo and return the first result.
39
  Args:
40
+ query: The search query string.
41
  """
42
  search_tool = DuckDuckGoSearchTool()
43
  results = search_tool(query)
44
+
45
  if isinstance(results, list) and len(results) > 0:
46
  return f"Top result for '{query}': {results[0]['body']} (link: {results[0]['href']})"
47
  else: