ChIrish06 commited on
Commit
769a4cd
·
verified ·
1 Parent(s): 33da7c6

Update app.py

Browse files

Adding tool decorator

Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -156,6 +156,8 @@ def tool_visit_webpage(url:str) -> str:
156
  vst = VisitWebpageTool()
157
  ret = vst(url)
158
  return ret
 
 
159
  def duckduckgo_search_tool(query:str) -> str:
160
  '''
161
  A tool used to initialize the ddg search tool, and to return the top 10 finings
 
156
  vst = VisitWebpageTool()
157
  ret = vst(url)
158
  return ret
159
+
160
+ @tool
161
  def duckduckgo_search_tool(query:str) -> str:
162
  '''
163
  A tool used to initialize the ddg search tool, and to return the top 10 finings