This commit is contained in:
parent
013f4602de
commit
80d8543f2a
|
|
@ -147,7 +147,7 @@ def enforce_input_exclusive_and_toggle_fields(selected):
|
|||
input_update = gr.update() if list(selected) == final_list else gr.update(value=final_list)
|
||||
|
||||
show_api_fields = "API Models" in final_sel
|
||||
api_field_update = gr.Column.update(visible=show_api_fields)
|
||||
api_field_update = gr.update(visible=show_api_fields) # ✅ 正确
|
||||
|
||||
return input_update, api_field_update
|
||||
|
||||
|
|
@ -247,7 +247,7 @@ with gr.Blocks(title="EvalScope 全功能界面") as demo:
|
|||
input_choices.change(
|
||||
fn=enforce_input_exclusive_and_toggle_fields,
|
||||
inputs=input_choices,
|
||||
outputs=[input_choices, api_fields]
|
||||
outputs=[input_choices, api_fields] # ✅ 只输出这两个
|
||||
)
|
||||
|
||||
run_button.click(
|
||||
|
|
|
|||
Loading…
Reference in New Issue