kianimehrin commited on
Commit
1ee3fc7
·
verified ·
1 Parent(s): bdb278b

update tool

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