diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index 3b3c931d..511c39a7 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -1194,7 +1194,7 @@ def process_text(texts): def html_center(text, label="p"): - return f"""
+ return f"""
<{label} style="margin: 0; padding: 0;">{text}
""" @@ -1453,25 +1453,25 @@ with gr.Blocks(title="GPT-SoVITS WebUI", analytics_enabled=False, js=js, css=css choices=[], value="", interactive=True, - scale=21, + scale=20, ) - refresh_models_btn = gr.Button(i18n("刷新模型列表"), variant="primary", scale=7) + refresh_models_btn = gr.Button(i18n("刷新模型列表"), variant="primary", scale=8) with gr.Row(): GPT_dropdown = gr.Dropdown( label=i18n("GPT模型列表"), choices=sorted(GPT_names, key=custom_sort_key), value=gpt_path, interactive=True, - scale=14, + scale=10, ) SoVITS_dropdown = gr.Dropdown( label=i18n("SoVITS模型列表"), choices=sorted(SoVITS_names, key=custom_sort_key), value=sovits_path, interactive=True, - scale=14, + scale=10, ) - refresh_button = gr.Button(i18n("刷新模型路径"), variant="primary", scale=14) + refresh_button = gr.Button(i18n("刷新模型路径"), variant="primary", scale=8) refresh_button.click(fn=change_choices, inputs=[], outputs=[SoVITS_dropdown, GPT_dropdown]) with gr.Group(): gr.Markdown(html_center(i18n("*请上传并填写参考信息"), "h3"))