Spaces:
Running
Running
Update helper_functions_api.py
Browse files- 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 [],
|
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):
|