hardknee commited on
Commit
2045106
·
verified ·
1 Parent(s): 3f612c2

Update app.py

Browse files

add import requests to get_web_search_results to see if enables Agent to use it

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -25,6 +25,7 @@ def get_web_search_results(query: str)-> str: #it's import to specify the return
25
  Args:
26
  query: A string representing a valid web query. IMPORTANT: Follow type str format strictly e.g. 'pictures of cats'.
27
  """
 
28
  search_results_tool = DuckDuckGoSearchTool()
29
  try:
30
  results = search_results_tool(query)
 
25
  Args:
26
  query: A string representing a valid web query. IMPORTANT: Follow type str format strictly e.g. 'pictures of cats'.
27
  """
28
+ import requests
29
  search_results_tool = DuckDuckGoSearchTool()
30
  try:
31
  results = search_results_tool(query)