pvanand commited on
Commit
8577c1d
·
verified ·
1 Parent(s): 37e51f9

Update helper_functions_api.py

Browse files
Files changed (1) hide show
  1. helper_functions_api.py +1 -1
helper_functions_api.py CHANGED
@@ -320,7 +320,7 @@ def search_brave(query, num_results=5):
320
 
321
  if response.status_code == 200:
322
  result = response.json() # Return the JSON response if successful
323
- return [item["url"] for item in result["web"]["results"]][:num_results],cleaned_search_query
324
  else:
325
  return [],cleaned_search_query # Return error code if not successful
326
 
 
320
 
321
  if response.status_code == 200:
322
  result = response.json() # Return the JSON response if successful
323
+ return [item["url"] for item in result["web"]["results"]][:num_results],cleaned_search_query, result
324
  else:
325
  return [],cleaned_search_query # Return error code if not successful
326