trailing commas automatically removed when processed

This commit is contained in:
FizzleDorf
2023-10-26 08:24:43 -04:00
parent 8b84f463ad
commit c0130fffbf
+3
View File
@@ -98,7 +98,10 @@ class BatchPromptSchedule:
CATEGORY = "FizzNodes/BatchScheduleNodes"
def animate(self, text, max_frames, clip, pw_a, pw_b, pw_c, pw_d, pre_text='', app_text=''):
inputText = str("{" + text + "}")
inputText = re.sub(r',\s*}', '}', inputText)
animation_prompts = json.loads(inputText.strip())
print(animation_prompts)
cur_prompt, nxt_prompt, weight = interpolate_prompt_series(animation_prompts, max_frames, pre_text,