ComfyUI_kkTranslator_nodes 简体中文| English These nodes are mainly used to translate prompt words from other languages into English.PromptTranslateToTextimplements prompt word translation based on Helsinki NLP translation model.It doesn't require internet connection。
"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 ...