pvanand commited on
Commit
b67e430
1 Parent(s): 1520382

Update helper_functions_api.py

Browse files
Files changed (1) hide show
  1. helper_functions_api.py +1 -1
helper_functions_api.py CHANGED
@@ -257,7 +257,7 @@ def search_brave(query, num_results=5):
257
 
258
  if response.status_code == 200:
259
  result = response.json() # Return the JSON response if successful
260
- return [item["url"] for item in result["web"]["results"]][:num_results],optimized_search_query
261
  else:
262
  return [],optimized_search_query # Return error code if not successful
263
 
 
257
 
258
  if response.status_code == 200:
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