Update PromptNode.py

This commit is contained in:
shadowcz007
2024-01-04 23:02:48 +08:00
parent 8acdf4018d
commit 7240e496cc
+2 -1
View File
@@ -67,7 +67,8 @@ def prompt_delete_words(sentence, new_words_length):
num_to_delete -= 1
else:
words_to.pop()
new_words.append(", ".join(words_to))
if len(words_to)>0:
new_words.append(", ".join(words_to))
return new_words