pvanand commited on
Commit
5909acd
1 Parent(s): dca52fb

Update helper_functions_api.py

Browse files
Files changed (1) hide show
  1. helper_functions_api.py +1 -1
helper_functions_api.py CHANGED
@@ -227,4 +227,4 @@ def search_brave(query, num_results=5):
227
  cleaned_search_query = re.sub(r'[^a-zA-Z0-9*]+', '', search_query)
228
  brave = Brave(BRAVE_API_KEY)
229
  search_results = brave.search(q=cleaned_search_query, count=num_results)
230
- return [url.__str__() for url in search_results.urls]
 
227
  cleaned_search_query = re.sub(r'[^a-zA-Z0-9*]+', '', search_query)
228
  brave = Brave(BRAVE_API_KEY)
229
  search_results = brave.search(q=cleaned_search_query, count=num_results)
230
+ return [url.__str__() for url in search_results.urls],cleaned_search_query