This commit is contained in:
parent
08e5939764
commit
89053e46ef
|
|
@ -200,12 +200,15 @@ with gr.Blocks(title="调试界面") as demo:
|
||||||
dbg_chk = gr.Checkbox(label="📜 显示 Debug 面板", value=False)
|
dbg_chk = gr.Checkbox(label="📜 显示 Debug 面板", value=False)
|
||||||
log_box = gr.Textbox(label="实时日志", lines=20, interactive=False, visible=False)
|
log_box = gr.Textbox(label="实时日志", lines=20, interactive=False, visible=False)
|
||||||
|
|
||||||
|
with gr.Row():
|
||||||
|
chatbot = gr.Chatbot(label="对话历史区") # ← 显式声明 history 显示区
|
||||||
|
|
||||||
chatbot = gr.ChatInterface(
|
chatbot = gr.ChatInterface(
|
||||||
fn=chat,
|
fn=chat,
|
||||||
additional_inputs=[max_new, temp, top_p, top_k,
|
additional_inputs=[max_new, temp, top_p, top_k,
|
||||||
rep_pen, pres_pen, stop_txt,
|
rep_pen, pres_pen, stop_txt,
|
||||||
api_choice, log_state],
|
api_choice, log_state],
|
||||||
additional_outputs=[log_state],
|
additional_outputs=[chatbot, log_state],
|
||||||
type="messages"
|
type="messages"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue