From 89053e46efedeacff664136946db8d1b6a1ed828 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 1 Aug 2025 10:15:09 +0800 Subject: [PATCH] . --- meta_ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta_ui.py b/meta_ui.py index c204554..eb22893 100644 --- a/meta_ui.py +++ b/meta_ui.py @@ -200,12 +200,15 @@ 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 = 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=[log_state], + additional_outputs=[chatbot, log_state], type="messages" )