lukmanaj commited on
Commit
3e9e2c2
·
verified ·
1 Parent(s): 37121fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -21,8 +21,9 @@ def my_custom_tool(query: str)-> str: #it's import to specify the return type
21
  query: The search query string.
22
  """
23
  search_tool = DuckDuckGoSearchTool()
24
- results = search_tool.run(query)
25
  return f"Search results for '{query}':\n" + "\n".join(results)
 
26
 
27
  @tool
28
  def get_current_time_in_timezone(timezone: str) -> str:
 
21
  query: The search query string.
22
  """
23
  search_tool = DuckDuckGoSearchTool()
24
+ results = search_tool(query)
25
  return f"Search results for '{query}':\n" + "\n".join(results)
26
+
27
 
28
  @tool
29
  def get_current_time_in_timezone(timezone: str) -> str: