This commit is contained in:
parent
89053e46ef
commit
0b2a49fe2c
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue