From cf9321feac83bace1544730b65342865ccbcd440 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Mon, 10 Nov 2025 20:31:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Runninghub=E7=9A=84Apikey?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=BC=95=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app.py | 5 +++++ web/i18n/locales/en_US.json | 2 ++ web/i18n/locales/zh_CN.json | 2 ++ 3 files changed, 9 insertions(+) diff --git a/web/app.py b/web/app.py index 6607a7f..bb40383 100644 --- a/web/app.py +++ b/web/app.py @@ -256,6 +256,11 @@ def render_advanced_settings(): help=tr("settings.comfyui.runninghub_api_key_help"), key="runninghub_api_key_input" ) + st.caption( + f"{tr('settings.comfyui.runninghub_hint')} " + f"[{tr('settings.comfyui.runninghub_get_api_key')}]" + f"(https://www.runninghub{'.cn' if get_language() == 'zh_CN' else '.ai'}/?inviteCode=bozpdlbj)" + ) # ==================================================================== # Action Buttons (full width at bottom) diff --git a/web/i18n/locales/en_US.json b/web/i18n/locales/en_US.json index 9696bf3..1d97ff0 100644 --- a/web/i18n/locales/en_US.json +++ b/web/i18n/locales/en_US.json @@ -183,6 +183,8 @@ "settings.comfyui.comfyui_url_help": "Local or remote ComfyUI server address", "settings.comfyui.runninghub_api_key": "RunningHub API Key", "settings.comfyui.runninghub_api_key_help": "Visit https://runninghub.ai to register and get API Key", + "settings.comfyui.runninghub_hint": "No local ComfyUI? Use RunningHub Cloud:", + "settings.comfyui.runninghub_get_api_key": "Get RunningHub API Key", "tts.inference_mode": "Synthesis Mode", "tts.mode.local": "Local Synthesis", diff --git a/web/i18n/locales/zh_CN.json b/web/i18n/locales/zh_CN.json index bf02aff..2ce3f12 100644 --- a/web/i18n/locales/zh_CN.json +++ b/web/i18n/locales/zh_CN.json @@ -183,6 +183,8 @@ "settings.comfyui.comfyui_url_help": "本地或远程 ComfyUI 服务器地址", "settings.comfyui.runninghub_api_key": "RunningHub API 密钥", "settings.comfyui.runninghub_api_key_help": "访问 https://runninghub.ai 注册并获取 API Key", + "settings.comfyui.runninghub_hint": "没有本地 ComfyUI?可用 RunningHub 云端:", + "settings.comfyui.runninghub_get_api_key": "点此获取 RunningHub API Key", "tts.inference_mode": "合成方式", "tts.mode.local": "本地合成",