mgokg commited on
Commit
cc6919c
·
verified ·
1 Parent(s): 08826a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,11 +67,11 @@ def ground_search(prompt):
67
  return response.text
68
 
69
  def duckduckgo(search_term):
70
- url = f"https://duckduckgo.com?q=impressum{search_term}"
71
  try:
72
  response = requests.get(url)
73
  #response.raise_for_status() # Raises HTTPError for bad responses
74
- s1 = response.text
75
  # Removing HTML tags using Beautiful Soup
76
  s2 = re.sub(r"<.*?>", "", s1)
77
  return s1
 
67
  return response.text
68
 
69
  def duckduckgo(search_term):
70
+ url = f"https://duckduckgo.com/?q=impressum+{search_term}&ia=web"
71
  try:
72
  response = requests.get(url)
73
  #response.raise_for_status() # Raises HTTPError for bad responses
74
+ s1 = response
75
  # Removing HTML tags using Beautiful Soup
76
  s2 = re.sub(r"<.*?>", "", s1)
77
  return s1