mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Better sentence spacing
This commit is contained in:
2
utils.py
2
utils.py
@ -119,7 +119,7 @@ def addsentencespacing(txt, vars):
|
||||
else:
|
||||
action = vars.prompt
|
||||
lastchar = action[-1] if len(action) else ""
|
||||
if(lastchar == "." or lastchar == "!" or lastchar == "?" or lastchar == "," or lastchar == ";" or lastchar == ":"):
|
||||
if(lastchar != " "):
|
||||
txt = " " + txt
|
||||
return txt
|
||||
|
||||
|
Reference in New Issue
Block a user