rbughao commited on
Commit
6b5399f
·
verified ·
1 Parent(s): 3ee4deb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -9,10 +9,11 @@ CLEANR = re.compile('<.*?>')
9
 
10
  def measure_readability(message,history):
11
  response = urllib.request.urlopen(message)
 
12
  html = response.read().decode('utf8')
13
  cleantext = BeautifulSoup(html, "lxml").text
14
  text = re.sub(CLEANR,'', cleantext)
15
- return 'answer'
16
 
17
  vline1 = "==== Content Info ==== " + os.linesep
18
  vline2 = "Character Count "+str(textstat.char_count(text, ignore_spaces=True)) + os.linesep
 
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
+
17
 
18
  vline1 = "==== Content Info ==== " + os.linesep
19
  vline2 = "Character Count "+str(textstat.char_count(text, ignore_spaces=True)) + os.linesep