rbughao commited on
Commit
068684e
·
verified ·
1 Parent(s): 6b5399f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,9 +8,9 @@ from bs4 import BeautifulSoup
8
  CLEANR = re.compile('<.*?>')
9
 
10
  def measure_readability(message,history):
11
- response = urllib.request.urlopen(message)
12
- return 'answer'
13
  html = response.read().decode('utf8')
 
14
  cleantext = BeautifulSoup(html, "lxml").text
15
  text = re.sub(CLEANR,'', cleantext)
16
 
 
8
  CLEANR = re.compile('<.*?>')
9
 
10
  def measure_readability(message,history):
11
+ response = urllib.request.urlopen(message)
 
12
  html = response.read().decode('utf8')
13
+ return 'answer'
14
  cleantext = BeautifulSoup(html, "lxml").text
15
  text = re.sub(CLEANR,'', cleantext)
16