This commit is contained in:
hailin 2025-07-27 15:39:59 +08:00
parent c2b7ec20b8
commit 871d5994af
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,9 @@ with gr.Blocks(title="调试界面") as demo:
# Chatbot
chatbot = gr.ChatInterface(
fn=chat,
additional_inputs=[max_new, temp, top_p, top_k, rep_pen, pres_pen, stop_txt, log_state],
additional_inputs=[max_new, temp, top_p, top_k,
rep_pen, pres_pen, stop_txt, log_state],
additional_outputs=[log_state], # ★ 必加
type="messages"
)