Fix embedding not working when on new line.

This commit is contained in:
comfyanonymous 2023-02-09 14:12:02 -05:00
parent 1f6a467e92
commit 324273fff2

View File

@ -217,7 +217,7 @@ class SD1Tokenizer:
tokens = []
for t in parsed_weights:
to_tokenize = unescape_important(t[0]).split(' ')
to_tokenize = unescape_important(t[0]).replace("\n", " ").split(' ')
for word in to_tokenize:
temp_tokens = []
embedding_identifier = "embedding:"