From c0130fffbf49287e162abff911e657e76a839ffa Mon Sep 17 00:00:00 2001 From: FizzleDorf <1fizzledorf@gmail.com> Date: Thu, 26 Oct 2023 08:24:43 -0400 Subject: [PATCH] trailing commas automatically removed when processed --- ScheduledNodes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ScheduledNodes.py b/ScheduledNodes.py index 7835dc9..9e016a7 100644 --- a/ScheduledNodes.py +++ b/ScheduledNodes.py @@ -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,