Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def duckduckgo(search_term):
|
|
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
|
|
|
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
|