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

Update app.py

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