zamroni111 commited on
Commit
aaaabf8
·
verified ·
1 Parent(s): cb930ac

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -3
README.md CHANGED
@@ -24,9 +24,10 @@ Output is reformatted that each sentence starts at new line to improve readabili
24
  <pre>
25
  ...
26
  vNewDecoded = tokenizer_stream.decode(new_token)
27
- if re.findall("^[\x2E\x3A\x3B]$", vPreviousDecoded) and vNewDecoded.startswith(" ") and (not vNewDecoded.startswith(" *")) :
28
- vNewDecoded = "\n" + vNewDecoded.replace(" ", "", 1)
29
- print(vNewDecoded, end='', flush=True)
 
30
  vPreviousDecoded = vNewDecoded
31
  ...
32
  </pre>
 
24
  <pre>
25
  ...
26
  vNewDecoded = tokenizer_stream.decode(new_token)
27
+ if re.fullmatch("^[\x2E\x3A\x3B]$", vPreviousDecoded) and vNewDecoded.startswith(" ") and (not vNewDecoded.startswith(" *")) :
28
+ print("\n" + vNewDecoded.replace(" ", "", 1), end='', flush=True)
29
+ else :
30
+ print(vNewDecoded, end='', flush=True)
31
  vPreviousDecoded = vNewDecoded
32
  ...
33
  </pre>