diff --git a/frontend/setting_page.py b/frontend/setting_page.py index 7b4867e..28cd2d5 100644 --- a/frontend/setting_page.py +++ b/frontend/setting_page.py @@ -41,7 +41,7 @@ def setting_page(): model_id_input = gr.Textbox(label="Model ID") base_url_input = gr.Textbox(label="Base URL") api_key_input = gr.Textbox(label="API Key") - add_button = gr.Button("添加新API") + add_button = gr.Button("添加新API", variant="primary") with gr.Column(scale=3): provider_table = gr.DataFrame( @@ -54,9 +54,9 @@ def setting_page(): ) with gr.Row(): - edit_button = gr.Button("编辑选中行") - delete_button = gr.Button("删除选中行") refresh_button = gr.Button("刷新数据", variant="secondary") + edit_button = gr.Button("编辑选中行", variant="primary") + delete_button = gr.Button("删除选中行", variant="stop") # 绑定刷新按钮事件 refresh_button.click(