Skip to content

Commit b9ec910

Browse files
committed
bypassing cache and increasing sleep time to avoid rate limit
1 parent 577be73 commit b9ec910

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

py/lumaai_api_node.py

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ class Text2Video:
9292
def __init__(self):
9393
self.output_dir = folder_paths.get_output_directory()
9494

95+
@classmethod
96+
def IS_CHANGED(cls, *args, **kwargs):
97+
return float("NaN")
98+
9599
@classmethod
96100
def INPUT_TYPES(cls):
97101
return {
@@ -152,6 +156,10 @@ def run(self, client, prompt, loop, aspect_ratio, save, filename):
152156
class Image2Video:
153157
def __init__(self):
154158
self.output_dir = folder_paths.get_output_directory()
159+
160+
@classmethod
161+
def IS_CHANGED(cls, *args, **kwargs):
162+
return float("NaN")
155163

156164
@classmethod
157165
def INPUT_TYPES(cls):
@@ -230,6 +238,10 @@ def run(
230238
class InterpolateGenerations:
231239
def __init__(self):
232240
self.output_dir = folder_paths.get_output_directory()
241+
242+
@classmethod
243+
def IS_CHANGED(cls, *args, **kwargs):
244+
return float("NaN")
233245

234246
@classmethod
235247
def INPUT_TYPES(cls):
@@ -302,6 +314,10 @@ def run(
302314
class ExtendGeneration:
303315
def __init__(self):
304316
self.output_dir = folder_paths.get_output_directory()
317+
318+
@classmethod
319+
def IS_CHANGED(cls, *args, **kwargs):
320+
return float("NaN")
305321

306322
@classmethod
307323
def INPUT_TYPES(cls):
@@ -512,6 +528,10 @@ def run(
512528
class ImageGeneration:
513529
def __init__(self):
514530
self.output_dir = folder_paths.get_output_directory()
531+
532+
@classmethod
533+
def IS_CHANGED(cls, *args, **kwargs):
534+
return float("NaN")
515535

516536
@classmethod
517537
def INPUT_TYPES(cls):
@@ -593,6 +613,10 @@ def run(
593613
class ModifyImage:
594614
def __init__(self):
595615
self.output_dir = folder_paths.get_output_directory()
616+
617+
@classmethod
618+
def IS_CHANGED(cls, *args, **kwargs):
619+
return float("NaN")
596620

597621
@classmethod
598622
def INPUT_TYPES(cls):
@@ -629,7 +653,7 @@ def run(self, client, model, prompt, modify_image_ref, filename=""):
629653
completed = True
630654
elif generation.state == "failed":
631655
raise ValueError(f"Generation failed: {generation.failure_reason}")
632-
time.sleep(1)
656+
time.sleep(3)
633657

634658
image_url = generation.assets.image
635659
directory, filename = parse_filename(filename)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui-lumaai-api"
33
description = "This custom node allows you to use the LumaAI API."
4-
version = "1.0.3"
4+
version = "1.0.4"
55
license = {file = "LICENSE"}
66
dependencies = ["lumaai", "requests", "numpy", "Pillow"]
77

0 commit comments

Comments
 (0)