Subratdz commited on
Commit
871c949
·
verified ·
1 Parent(s): 631e7df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -15,8 +15,9 @@ def search_tool(arg1:str)-> str: #it's import to specify the return type
15
  Args:
16
  arg1: search topic
17
  """
18
- out = DuckDuckGoSearchTool(arg1)
19
- return out
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
15
  Args:
16
  arg1: search topic
17
  """
18
+ search = DuckDuckGoSearchTool()
19
+
20
+ return search(arg1)
21
 
22
  @tool
23
  def get_current_time_in_timezone(timezone: str) -> str: