Added bucket URL to be added in the input
This commit is contained in:
+4
-2
@@ -26,6 +26,7 @@ class CustomSelector:
|
||||
"denoise_wide": ("FLOAT", {"default": 0.20, "step": 0.01}),
|
||||
|
||||
"clear_string": ("BOOLEAN", {"default": False}),
|
||||
"url_prefix": ("STRING", {"default": ""}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -60,7 +61,8 @@ class CustomSelector:
|
||||
start_at_closeup, start_at_medium, start_at_wide,
|
||||
end_at_closeup, end_at_medium, end_at_wide,
|
||||
denoise_closeup, denoise_medium, denoise_wide,
|
||||
clear_string
|
||||
clear_string,
|
||||
url_prefix
|
||||
):
|
||||
input_string = input_string.strip()
|
||||
lowered = input_string.lower()
|
||||
@@ -110,7 +112,7 @@ class CustomSelector:
|
||||
for kw in keyword_list:
|
||||
if re.search(rf"\b{re.escape(kw)}\b", lowered):
|
||||
matched_keyword = kw
|
||||
image_url = f"https://qikbljxzzfgjkurwndun.supabase.co/storage/v1/object/public/generated-images/resources/faces/{kw}.jpg"
|
||||
image_url = f"{url_prefix.rstrip('/')}/{kw}.jpg"
|
||||
break
|
||||
|
||||
if clear_string:
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 pixible
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
[project]
|
||||
name = "comfyui-customselector"
|
||||
description = ""
|
||||
version = "1.0.0"
|
||||
license = "LICENSE"
|
||||
description = "Helps deciding different settings depending on the input string"
|
||||
version = "1.0.1"
|
||||
license = { file = "LICENSE" }
|
||||
|
||||
[project.urls]
|
||||
Repository = "https://github.com/gasparuff/CustomSelector"
|
||||
|
||||
Reference in New Issue
Block a user