kianimehrin commited on
Commit
f99c68c
·
verified ·
1 Parent(s): 5b8501e

update tool

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,9 +16,9 @@ def my_search_tool(query:str)-> str: #it's import to specify the return type
16
  query: the user query
17
  """
18
  try:
19
- search_tool = DuckDuckGoSearchTool(query)
20
 
21
- return search_tool
22
 
23
  except Exception as e:
24
  return f"Error fetching response for '{query}': {str(e)}"
 
16
  query: the user query
17
  """
18
  try:
19
+ search_tool = DuckDuckGoSearchTool()
20
 
21
+ return search_tool(query)
22
 
23
  except Exception as e:
24
  return f"Error fetching response for '{query}': {str(e)}"