From f041d8eb64e1af1f7a5def01247d564b1a283a5b Mon Sep 17 00:00:00 2001 From: Arcitec <38923130+Arcitec@users.noreply.github.com> Date: Thu, 11 Sep 2025 06:08:08 +0200 Subject: [PATCH] fix(webui): Fix unintentional empty spacing between control groups --- webui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webui.py b/webui.py index 2f854d4..cf81a2b 100644 --- a/webui.py +++ b/webui.py @@ -195,8 +195,8 @@ with gr.Blocks(title="IndexTTS Demo") as demo: emo_upload = gr.Audio(label=i18n("上传情感参考音频"), type="filepath") # 情感随机采样 - with gr.Row(): - emo_random = gr.Checkbox(label=i18n("情感随机采样"),value=False,visible=False) + with gr.Row(visible=False) as emotion_randomize_group: + emo_random = gr.Checkbox(label=i18n("情感随机采样"), value=False) # 情感向量控制部分 with gr.Group(visible=False) as emotion_vector_group: @@ -321,7 +321,7 @@ with gr.Blocks(title="IndexTTS Demo") as demo: emo_control_method.select(on_method_select, inputs=[emo_control_method], outputs=[emotion_reference_group, - emo_random, + emotion_randomize_group, emotion_vector_group, emo_text_group, emo_weight_group]