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) # ✅ 默认隐藏
|
log_box = gr.Textbox(label="实时日志", lines=20, interactive=False, visible=False) # ✅ 默认隐藏
|
||||||
|
|
||||||
# Chat 界面(移到日志之前)
|
# 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(
|
chatbot = gr.ChatInterface(
|
||||||
fn=chat,
|
fn=chat,
|
||||||
additional_inputs=[max_new, temp, top_p, top_k,
|
textbox=gr.Textbox(lines=2, placeholder="文本...", label="Prompt"),
|
||||||
rep_pen, pres_pen, stop_txt, log_state],
|
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],
|
additional_outputs=[log_state],
|
||||||
type="messages"
|
type="messages"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue