Fix for blank chat mode data causing crashes

This commit is contained in:
ebolam
2022-10-18 20:23:54 -04:00
parent de0e358182
commit 3d6a939a4e

View File

@@ -6203,6 +6203,8 @@ def applyinputformatting(txt):
def applyoutputformatting(txt, no_sentence_trimming=False):
#remove null ascii character (used to kill chat mode text in multi-generation)
txt = txt.replace(chr(0), "")
if len(txt) == 0:
return txt
# Use standard quotes and apostrophes
txt = utils.fixquotes(txt)