Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|
|
|
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
|