rbughao commited on
Commit
481cd29
1 Parent(s): 99dd8f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- #cleantext = BeautifulSoup(html).text
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