Spaces:
Runtime error
Runtime error
Update helper_functions_api.py
Browse files- helper_functions_api.py +1 -1
helper_functions_api.py
CHANGED
@@ -238,7 +238,7 @@ def fetch_and_extract_content(data_format, urls, query):
|
|
238 |
return all_text_with_urls
|
239 |
|
240 |
|
241 |
-
|
242 |
def search_brave(query, num_results=5):
|
243 |
cleaned_query = query #re.sub(r'[^a-zA-Z0-9]+', '', query)
|
244 |
search_query = together_response(cleaned_query, model=llm_default_small, SysPrompt=SysPromptSearch, max_tokens = 25).strip()
|
|
|
238 |
return all_text_with_urls
|
239 |
|
240 |
|
241 |
+
#@retry(tries=3, delay=0.25)
|
242 |
def search_brave(query, num_results=5):
|
243 |
cleaned_query = query #re.sub(r'[^a-zA-Z0-9]+', '', query)
|
244 |
search_query = together_response(cleaned_query, model=llm_default_small, SysPrompt=SysPromptSearch, max_tokens = 25).strip()
|