Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -106,7 +106,7 @@ async def generate_report(query: QueryModel):
|
|
106 |
search_query = re.sub(r'[^\w\s]', '', description).strip()
|
107 |
try:
|
108 |
urls, optimized_search_query = search_brave(search_query, num_results=8)
|
109 |
-
all_text_with_urls = fetch_and_extract_content(data_format, urls,
|
110 |
reference = limit_tokens(str(all_text_with_urls))
|
111 |
user_prompt_final = user_prompt_final.format(description=description, reference=reference)
|
112 |
except Exception as e:
|
|
|
106 |
search_query = re.sub(r'[^\w\s]', '', description).strip()
|
107 |
try:
|
108 |
urls, optimized_search_query = search_brave(search_query, num_results=8)
|
109 |
+
all_text_with_urls = fetch_and_extract_content(data_format, urls, optimized_search_query)
|
110 |
reference = limit_tokens(str(all_text_with_urls))
|
111 |
user_prompt_final = user_prompt_final.format(description=description, reference=reference)
|
112 |
except Exception as e:
|