PromptTranslateToText implements prompt word translation based on Helsinki NLP translation model.It doesn't require internet connection。 Install Clone this repository to the custom of ComfyUI In the nodes folder。 cd custom_nodes git clone https://github.com/AIGCTeam/ComfyUI_kkTranslator_nodes ...
"prompt_text": ("STRING", {"multiline": True,"default": "你好"}), } } RETURN_TYPES = ("STRING",) FUNCTION = "run" CATEGORY = "kkTranslator" def run(self, appid,secretkey,from_lang,prompt_text): if appid == "" or secretkey == "": raise "Please input your appid and ...