This commit is contained in:
parent
8f12b8269a
commit
7bdc80cd1e
13
meta_ui.py
13
meta_ui.py
|
|
@ -129,10 +129,19 @@ with gr.Blocks(title="调试界面") as demo:
|
|||
log_box = gr.Textbox(label="实时日志", lines=20, interactive=False, visible=False) # ✅ 默认隐藏
|
||||
|
||||
# Chat 界面(移到日志之前)
|
||||
# chatbot = gr.ChatInterface(
|
||||
# fn=chat,
|
||||
# additional_inputs=[max_new, temp, top_p, top_k,
|
||||
# rep_pen, pres_pen, stop_txt, log_state],
|
||||
# additional_outputs=[log_state],
|
||||
# type="messages"
|
||||
# )
|
||||
|
||||
chatbot = gr.ChatInterface(
|
||||
fn=chat,
|
||||
additional_inputs=[max_new, temp, top_p, top_k,
|
||||
rep_pen, pres_pen, stop_txt, log_state],
|
||||
textbox=gr.Textbox(lines=2, placeholder="文本...", label="Prompt"),
|
||||
submit_btn=gr.Button(value="", icon="send"),
|
||||
additional_inputs=[max_new, temp, top_p, top_k, rep_pen, pres_pen, stop_txt, log_state],
|
||||
additional_outputs=[log_state],
|
||||
type="messages"
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue