Spaces:
Runtime error
Runtime error
Sync from GitHub repo
Browse filesThis Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there
app.py
CHANGED
|
@@ -362,9 +362,7 @@ with gr.Blocks() as app_emotional:
|
|
| 362 |
# Update delete button clicks
|
| 363 |
for i, delete_btn in enumerate(speech_type_delete_btns):
|
| 364 |
delete_fn = make_delete_speech_type_fn(i)
|
| 365 |
-
delete_btn.click(
|
| 366 |
-
delete_fn, inputs=speech_type_count, outputs=[speech_type_count] + speech_type_rows
|
| 367 |
-
)
|
| 368 |
|
| 369 |
# Text input for the prompt
|
| 370 |
gen_text_input_emotional = gr.Textbox(label="Text to Generate", lines=10)
|
|
@@ -447,10 +445,10 @@ with gr.Blocks() as app_emotional:
|
|
| 447 |
regular_audio,
|
| 448 |
regular_ref_text,
|
| 449 |
gen_text_input_emotional,
|
| 450 |
-
]
|
| 451 |
-
+ speech_type_names
|
| 452 |
-
+ speech_type_audios
|
| 453 |
-
+ speech_type_ref_texts
|
| 454 |
+ [
|
| 455 |
model_choice_emotional,
|
| 456 |
remove_silence_emotional,
|
|
@@ -490,7 +488,7 @@ with gr.Blocks() as app_emotional:
|
|
| 490 |
inputs=[gen_text_input_emotional, regular_name] + speech_type_names,
|
| 491 |
outputs=generate_emotional_btn,
|
| 492 |
)
|
| 493 |
-
|
| 494 |
with gr.Blocks() as app:
|
| 495 |
gr.Markdown(
|
| 496 |
"""
|
|
|
|
| 362 |
# Update delete button clicks
|
| 363 |
for i, delete_btn in enumerate(speech_type_delete_btns):
|
| 364 |
delete_fn = make_delete_speech_type_fn(i)
|
| 365 |
+
delete_btn.click(delete_fn, inputs=speech_type_count, outputs=[speech_type_count] + speech_type_rows)
|
|
|
|
|
|
|
| 366 |
|
| 367 |
# Text input for the prompt
|
| 368 |
gen_text_input_emotional = gr.Textbox(label="Text to Generate", lines=10)
|
|
|
|
| 445 |
regular_audio,
|
| 446 |
regular_ref_text,
|
| 447 |
gen_text_input_emotional,
|
| 448 |
+
]
|
| 449 |
+
+ speech_type_names
|
| 450 |
+
+ speech_type_audios
|
| 451 |
+
+ speech_type_ref_texts
|
| 452 |
+ [
|
| 453 |
model_choice_emotional,
|
| 454 |
remove_silence_emotional,
|
|
|
|
| 488 |
inputs=[gen_text_input_emotional, regular_name] + speech_type_names,
|
| 489 |
outputs=generate_emotional_btn,
|
| 490 |
)
|
| 491 |
+
|
| 492 |
with gr.Blocks() as app:
|
| 493 |
gr.Markdown(
|
| 494 |
"""
|