This commit is contained in:
parent
f932f0bd5f
commit
0333b8af9c
|
|
@ -96,6 +96,7 @@ with gr.Blocks(title="Base 模型测试 UI") as demo:
|
||||||
|
|
||||||
chatbot = gr.ChatInterface(
|
chatbot = gr.ChatInterface(
|
||||||
fn=lambda m, h: chat(m, h, max_tokens.value, temperature.value),
|
fn=lambda m, h: chat(m, h, max_tokens.value, temperature.value),
|
||||||
|
additional_inputs=[max_tokens, temperature], # ✅ 添加这一行
|
||||||
title=None
|
title=None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue