mirror of
https://github.com/SWivid/F5-TTS.git
synced 2025-12-25 20:34:27 -08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46ccc575c5 |
@@ -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"}
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user