refactor(plugin)!: rename to default_value for external text or image
This commit is contained in:
parent
06f427ef70
commit
c77d201e88
@ -14,7 +14,7 @@ class ComfyUIDeployExternalImage:
|
||||
),
|
||||
},
|
||||
"optional": {
|
||||
"default_image": ("IMAGE",),
|
||||
"default_value": ("IMAGE",),
|
||||
}
|
||||
}
|
||||
|
||||
@ -25,8 +25,8 @@ class ComfyUIDeployExternalImage:
|
||||
|
||||
CATEGORY = "image"
|
||||
|
||||
def run(self, input_id, default_image=None):
|
||||
image = default_image
|
||||
def run(self, input_id, default_value=None):
|
||||
image = default_value
|
||||
try:
|
||||
if input_id.startswith('http'):
|
||||
import requests
|
||||
|
@ -14,7 +14,7 @@ class ComfyUIDeployExternalText:
|
||||
),
|
||||
},
|
||||
"optional": {
|
||||
"default_text": (
|
||||
"default_value": (
|
||||
"STRING",
|
||||
{"multiline": True, "default": ""},
|
||||
),
|
||||
@ -28,9 +28,9 @@ class ComfyUIDeployExternalText:
|
||||
|
||||
CATEGORY = "text"
|
||||
|
||||
def run(self, input_id, default_text=None):
|
||||
def run(self, input_id, default_value=None):
|
||||
if not input_id or len(input_id.strip()) == 0:
|
||||
return [default_text]
|
||||
return [default_value]
|
||||
return [input_id]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user