From 7a8b50102da203b87207957d1279ed0434685021 Mon Sep 17 00:00:00 2001 From: w_xiaolizu Date: Mon, 22 May 2023 11:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=87=E6=A1=88=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __main__.py | 2 +- toolbox.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__main__.py b/__main__.py index 2766085..eba428e 100644 --- a/__main__.py +++ b/__main__.py @@ -203,7 +203,7 @@ class ChatBot(ChatBotFrame): def draw_setting_chat(self): switch_model = get_conf('switch_model')[0] - with gr.Tab('Setting'): + with gr.Tab('Settings'): self.top_p = gr.Slider(minimum=-0, maximum=1.0, value=1.0, step=0.01, interactive=True, label="Top-p (nucleus sampling)", ).style(container=False) self.temperature = gr.Slider(minimum=-0, maximum=2.0, value=1.0, step=0.01, interactive=True, diff --git a/toolbox.py b/toolbox.py index fceff38..5181b42 100644 --- a/toolbox.py +++ b/toolbox.py @@ -77,9 +77,9 @@ def ArgsGeneralWrapper(f): chatbot[0] = [f'隐私模式, 你的对话记录无法被他人检索

\n{private_key}\n{ipaddr.client.host}\n

', None] else: if chatbot == []: - chatbot.append(['正常对话模式, 你接来下的对话将会被记录并且可以被所有人检索', None]) + chatbot.append(['正常对话模式, 你接来下的对话将会被记录并且可以被所有人检索,你可以到Settings中选择隐私模式', None]) else: - chatbot[0] = ['正常对话模式, 你接下来的对话将会被记录并且可以被所有人检索', None] + chatbot[0] = ['正常对话模式, 你接来下的对话将会被记录并且可以被所有人检索,你可以到Settings中选择隐私模式', None] chatbot_with_cookie = ChatBotWithCookies(cookies) chatbot_with_cookie.write_list(chatbot) txt_passon = txt