Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhances text generation by appending random terms from specified category for diverse, creative outputs.
The ConcatRandomNSP_O
node is designed to enhance your text generation workflow by concatenating a given string with a randomly selected term from a specified terminology category. This node is particularly useful for AI artists who want to add a touch of randomness and creativity to their text outputs. By leveraging a predefined set of terminologies, the node ensures that the generated text is both diverse and contextually relevant. The primary function of this node is to take an input string, append a randomly chosen term from a selected category, and return the concatenated result. This can be especially beneficial for generating unique prompts, descriptions, or any other text-based content where variety and creativity are desired.
This parameter represents the initial string that you want to concatenate with a randomly selected term. It is a single-line string input, meaning it does not support multiline text. The default behavior is set to "input," indicating that you need to provide the text manually.
This parameter allows you to select a category from which a random term will be chosen. The available categories are loaded from a predefined set of terminologies. Selecting a specific category ensures that the random term appended to your text is contextually relevant to that category.
This parameter defines the string that will be used to separate the input text and the randomly selected term. By default, the separator is set to a comma (,
), but you can customize it to any string that suits your needs.
This parameter is an integer that sets the seed for the random number generator. By specifying a seed, you can ensure that the random term selection is reproducible. The default value is 0, and it can range from 0 to 0xffffffffffffffff (a very large number).
The output is a single string that consists of the input text concatenated with a randomly selected term from the specified terminology category, separated by the defined separator. This output is useful for generating varied and creative text content.
KeyError: 'terminology'
TypeError: can only concatenate str (not "NoneType") to str
None
.ValueError: Seed must be between 0 and 0xffffffffffffffff
© Copyright 2024 RunComfy. All Rights Reserved.