jcleee commited on
Commit
d4a2e66
·
verified ·
1 Parent(s): 6be2ad1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -14,7 +14,9 @@ def search_web(query:str)-> str: #it's import to specify the return type
14
  Args:
15
  query: what you want to search
16
  """
17
- return DuckDuckGoSearchTool(query)
 
 
18
 
19
  @tool
20
  def get_current_time_in_timezone(timezone: str) -> str:
 
14
  Args:
15
  query: what you want to search
16
  """
17
+ search_tool = DuckDuckGoSearchTool()
18
+ results = search_tool(query)
19
+ return results
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str: