wldmr commited on
Commit
fc7642f
·
1 Parent(s): e88ea86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -37,6 +37,10 @@ def predict(input_text):
37
  # assemble the array back to a string
38
  pcnt_file_cr=' '.join(pcnt_file_array_hash).replace('#','\n')
39
 
 
 
 
 
40
  regex1 = r"\bi\b"
41
  regex2 = r"(?<=[.?!;])\s*\w"
42
  regex3 = r"^\w"
 
37
  # assemble the array back to a string
38
  pcnt_file_cr=' '.join(pcnt_file_array_hash).replace('#','\n')
39
 
40
+ # ignore the above mentioned line number restaration
41
+ # instead return the punctuated text as a single string
42
+ pcnt_file_cr = output_text
43
+
44
  regex1 = r"\bi\b"
45
  regex2 = r"(?<=[.?!;])\s*\w"
46
  regex3 = r"^\w"