Shreyas094 commited on
Commit
b9091e4
1 Parent(s): 5fe2f17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -558,7 +558,7 @@ def search_and_scrape(query, chat_history, num_results=5, scraper="bs4", max_cha
558
  if len(scraped_content) >= num_results:
559
  break
560
 
561
- url = result.get('url', '') if not use_duckduckgo else result.get('href', '')
562
  title = result.get('title', 'No title')
563
 
564
  if not is_valid_url(url):
 
558
  if len(scraped_content) >= num_results:
559
  break
560
 
561
+ url = result.get('url', '') if not use_duckduckgo else result.get('url', '')
562
  title = result.get('title', 'No title')
563
 
564
  if not is_valid_url(url):