From b9ec91020677f36eadf4e1f00b81e4bad3fee242 Mon Sep 17 00:00:00 2001 From: Pedro gengo Date: Mon, 9 Dec 2024 23:27:23 -0300 Subject: [PATCH] bypassing cache and increasing sleep time to avoid rate limit --- py/lumaai_api_node.py | 26 +++++++++++++++++++++++++- pyproject.toml | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/py/lumaai_api_node.py b/py/lumaai_api_node.py index 90e348d..fad2e06 100644 --- a/py/lumaai_api_node.py +++ b/py/lumaai_api_node.py @@ -92,6 +92,10 @@ class Text2Video: def __init__(self): self.output_dir = folder_paths.get_output_directory() + @classmethod + def IS_CHANGED(cls, *args, **kwargs): + return float("NaN") + @classmethod def INPUT_TYPES(cls): return { @@ -152,6 +156,10 @@ class Text2Video: class Image2Video: def __init__(self): self.output_dir = folder_paths.get_output_directory() + + @classmethod + def IS_CHANGED(cls, *args, **kwargs): + return float("NaN") @classmethod def INPUT_TYPES(cls): @@ -230,6 +238,10 @@ class Image2Video: class InterpolateGenerations: def __init__(self): self.output_dir = folder_paths.get_output_directory() + + @classmethod + def IS_CHANGED(cls, *args, **kwargs): + return float("NaN") @classmethod def INPUT_TYPES(cls): @@ -302,6 +314,10 @@ class InterpolateGenerations: class ExtendGeneration: def __init__(self): self.output_dir = folder_paths.get_output_directory() + + @classmethod + def IS_CHANGED(cls, *args, **kwargs): + return float("NaN") @classmethod def INPUT_TYPES(cls): @@ -512,6 +528,10 @@ class CharacterReference: class ImageGeneration: def __init__(self): self.output_dir = folder_paths.get_output_directory() + + @classmethod + def IS_CHANGED(cls, *args, **kwargs): + return float("NaN") @classmethod def INPUT_TYPES(cls): @@ -593,6 +613,10 @@ class ImageGeneration: class ModifyImage: def __init__(self): self.output_dir = folder_paths.get_output_directory() + + @classmethod + def IS_CHANGED(cls, *args, **kwargs): + return float("NaN") @classmethod def INPUT_TYPES(cls): @@ -629,7 +653,7 @@ class ModifyImage: completed = True elif generation.state == "failed": raise ValueError(f"Generation failed: {generation.failure_reason}") - time.sleep(1) + time.sleep(3) image_url = generation.assets.image directory, filename = parse_filename(filename) diff --git a/pyproject.toml b/pyproject.toml index e16025d..1e8dfce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-lumaai-api" description = "This custom node allows you to use the LumaAI API." -version = "1.0.3" +version = "1.0.4" license = {file = "LICENSE"} dependencies = ["lumaai", "requests", "numpy", "Pillow"]