Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -70,7 +70,7 @@ async def generate_report(request: Request, query: QueryModel):
|
|
| 70 |
search_query = description
|
| 71 |
# Search for relevant URLs
|
| 72 |
try:
|
| 73 |
-
urls,optimized_search_query = search_brave(search_query, num_results=
|
| 74 |
# Fetch and extract content from the URLs
|
| 75 |
all_text_with_urls = fetch_and_extract_content(data_format, urls, query_str)
|
| 76 |
# Prepare the prompt for generating the report
|
|
|
|
| 70 |
search_query = description
|
| 71 |
# Search for relevant URLs
|
| 72 |
try:
|
| 73 |
+
urls,optimized_search_query = search_brave(search_query, num_results=10)
|
| 74 |
# Fetch and extract content from the URLs
|
| 75 |
all_text_with_urls = fetch_and_extract_content(data_format, urls, query_str)
|
| 76 |
# Prepare the prompt for generating the report
|