Merge pull request #6 from lumalabs/enhancement/misc

bypassing cache and increasing sleep time to avoid rate limit
This commit is contained in:
Pedro Gabriel Gengo Lourenço
2024-12-09 23:28:07 -03:00
committed by GitHub
2 changed files with 26 additions and 2 deletions
+25 -1
View File
@@ -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)
+1 -1
View File
@@ -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"]