hjerpe commited on
Commit
7829173
·
1 Parent(s): 7b2ac2d

WIP: Add latest trend functionality

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ def get_latest_trends(search_query:str)-> str: #it's import to specify the retur
15
  Args:
16
  search_query: The search query to be used to fetch the latest trends.
17
  """
18
- return DuckDuckGoSearchTool().search(search_query)
 
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str:
 
15
  Args:
16
  search_query: The search query to be used to fetch the latest trends.
17
  """
18
+ search_tool = DuckDuckGoSearchTool()
19
+ return search_tool(search_query)
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str: