From 0b2a49fe2cb267dcbb81965a24e0ec5c8a5f11be Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 1 Aug 2025 10:23:29 +0800 Subject: [PATCH] . --- meta_ui.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/meta_ui.py b/meta_ui.py index eb22893..c7aa885 100644 --- a/meta_ui.py +++ b/meta_ui.py @@ -200,15 +200,14 @@ with gr.Blocks(title="调试界面") as demo: dbg_chk = gr.Checkbox(label="📜 显示 Debug 面板", value=False) log_box = gr.Textbox(label="实时日志", lines=20, interactive=False, visible=False) - with gr.Row(): - chatbot = gr.Chatbot(label="对话历史区") # ← 显式声明 history 显示区 + chatbot_box = gr.Chatbot(label="Chat") # 添加这一行 - chatbot = gr.ChatInterface( + chat = gr.ChatInterface( fn=chat, additional_inputs=[max_new, temp, top_p, top_k, rep_pen, pres_pen, stop_txt, api_choice, log_state], - additional_outputs=[chatbot, log_state], + additional_outputs=[chatbot_box, log_state], type="messages" )