Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,8 @@ def measure_readability(message,history):
|
|
42 |
if "https://" in message:
|
43 |
response = urllib.request.urlopen(message)
|
44 |
html = response.read().decode('utf8')
|
45 |
-
|
46 |
-
cleantext = BeautifulSoup(html,'lxml').text
|
47 |
text = re.sub(CLEANR,'', cleantext)
|
48 |
else:
|
49 |
text = message
|
|
|
42 |
if "https://" in message:
|
43 |
response = urllib.request.urlopen(message)
|
44 |
html = response.read().decode('utf8')
|
45 |
+
cleantext = BeautifulSoup(html).text
|
46 |
+
#cleantext = BeautifulSoup(html,'lxml').text
|
47 |
text = re.sub(CLEANR,'', cleantext)
|
48 |
else:
|
49 |
text = message
|