Shreyas094
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -393,7 +393,7 @@ def search_and_scrape(query, chat_history, num_results=5, scraper="trafilatura",
|
|
393 |
logger.warning(f"No more results returned from SearXNG on page {page}.")
|
394 |
break
|
395 |
|
396 |
-
|
397 |
if len(scraped_content) >= num_results:
|
398 |
break
|
399 |
|
|
|
393 |
logger.warning(f"No more results returned from SearXNG on page {page}.")
|
394 |
break
|
395 |
|
396 |
+
for result in results:
|
397 |
if len(scraped_content) >= num_results:
|
398 |
break
|
399 |
|