1 Commits
1.1.12 ... main

Author SHA1 Message Date
SWivid
46ccc575c5 v1.1.15 workaround for gr.Accordion default open=False bug (#1239) 2025-12-21 15:06:44 +08:00
2 changed files with 13 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "f5-tts"
version = "1.1.12"
version = "1.1.15"
description = "F5-TTS: A Fairytaler that Fakes Fluent and Faithful Speech with Flow Matching"
readme = "README.md"
license = {text = "MIT License"}

View File

@@ -221,7 +221,7 @@ with gr.Blocks() as app_tts:
)
gen_text_file = gr.File(label="Load Text to Generate from File (.txt)", file_types=[".txt"], scale=1)
generate_btn = gr.Button("Synthesize", variant="primary")
with gr.Accordion("Advanced Settings", open=False):
with gr.Accordion("Advanced Settings", open=True) as adv_settn:
with gr.Row():
ref_text_input = gr.Textbox(
label="Reference Text",
@@ -269,6 +269,17 @@ with gr.Blocks() as app_tts:
info="Set the duration of the cross-fade between audio clips.",
)
def collapse_accordion():
return gr.Accordion(open=False)
# Workaround for https://github.com/SWivid/F5-TTS/issues/1239#issuecomment-3677987413
# i.e. to set gr.Accordion(open=True) by default, then collapse manually Blocks loaded
app_tts.load(
fn=collapse_accordion,
inputs=None,
outputs=adv_settn,
)
audio_output = gr.Audio(label="Synthesized Audio")
spectrogram_output = gr.Image(label="Spectrogram")