pvanand commited on
Commit
9df33fa
1 Parent(s): b67e430

Update helper_functions_api.py

Browse files
Files changed (1) hide show
  1. helper_functions_api.py +1 -1
helper_functions_api.py CHANGED
@@ -259,7 +259,7 @@ def search_brave(query, num_results=5):
259
  result = response.json() # Return the JSON response if successful
260
  return [item["url"] for item in result["web"]["results"]][:num_results],cleaned_search_query
261
  else:
262
- return [],optimized_search_query # Return error code if not successful
263
 
264
  # #@retry(tries=3, delay=0.25)
265
  # def search_brave(query, num_results=5):
 
259
  result = response.json() # Return the JSON response if successful
260
  return [item["url"] for item in result["web"]["results"]][:num_results],cleaned_search_query
261
  else:
262
+ return [],cleaned_search_query # Return error code if not successful
263
 
264
  # #@retry(tries=3, delay=0.25)
265
  # def search_brave(query, num_results=5):