Added World Info

Added additional punctuation triggers for Add Sentence Spacing format
Added better screen reset logic when refresing screen or restarting server
This commit is contained in:
KoboldAI Dev
2021-05-13 01:26:42 -04:00
parent fff77c5a88
commit c0736a8ec7
5 changed files with 393 additions and 27 deletions

View File

@ -69,7 +69,7 @@ def removespecialchars(txt):
def addsentencespacing(txt, acts):
# Get last character of last action
lastchar = acts[-1][-1]
if(lastchar == "." or lastchar == "!" or lastchar == "?"):
if(lastchar == "." or lastchar == "!" or lastchar == "?" or lastchar == "," or lastchar == ";" or lastchar == ":"):
txt = " " + txt
return txt