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