This commit is contained in:
hailin 2025-08-01 10:15:09 +08:00
parent 08e5939764
commit 89053e46ef
1 changed files with 4 additions and 1 deletions

View File

@ -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"
)