Spaces:
Running
on
Zero
Running
on
Zero
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
|
@@ -222,9 +222,7 @@ with gr.Blocks() as app_tts:
|
|
| 222 |
lines=2,
|
| 223 |
scale=4,
|
| 224 |
)
|
| 225 |
-
ref_text_file = gr.File(
|
| 226 |
-
label="Load Reference Text from File (.txt)", file_types=[".txt"], scale=1, height=1
|
| 227 |
-
)
|
| 228 |
with gr.Row():
|
| 229 |
randomize_seed = gr.Checkbox(
|
| 230 |
label="Randomize Seed",
|
|
@@ -399,8 +397,9 @@ with gr.Blocks() as app_multistyle:
|
|
| 399 |
regular_insert = gr.Button("Insert Label", variant="secondary")
|
| 400 |
with gr.Column(scale=3):
|
| 401 |
regular_audio = gr.Audio(label="Regular Reference Audio", type="filepath")
|
| 402 |
-
with gr.Column(scale=
|
| 403 |
regular_ref_text = gr.Textbox(label="Reference Text (Regular)", lines=8, scale=3)
|
|
|
|
| 404 |
regular_ref_text_file = gr.File(label="Load Reference Text from File (.txt)", file_types=[".txt"], scale=1)
|
| 405 |
|
| 406 |
# Regular speech type (max 100)
|
|
@@ -422,8 +421,9 @@ with gr.Blocks() as app_multistyle:
|
|
| 422 |
insert_btn = gr.Button("Insert Label", variant="secondary")
|
| 423 |
with gr.Column(scale=3):
|
| 424 |
audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
| 425 |
-
with gr.Column(scale=
|
| 426 |
ref_text_input = gr.Textbox(label="Reference Text", lines=8, scale=3)
|
|
|
|
| 427 |
ref_text_file_input = gr.File(
|
| 428 |
label="Load Reference Text from File (.txt)", file_types=[".txt"], scale=1
|
| 429 |
)
|
|
|
|
| 222 |
lines=2,
|
| 223 |
scale=4,
|
| 224 |
)
|
| 225 |
+
ref_text_file = gr.File(label="Load Reference Text from File (.txt)", file_types=[".txt"], scale=1)
|
|
|
|
|
|
|
| 226 |
with gr.Row():
|
| 227 |
randomize_seed = gr.Checkbox(
|
| 228 |
label="Randomize Seed",
|
|
|
|
| 397 |
regular_insert = gr.Button("Insert Label", variant="secondary")
|
| 398 |
with gr.Column(scale=3):
|
| 399 |
regular_audio = gr.Audio(label="Regular Reference Audio", type="filepath")
|
| 400 |
+
with gr.Column(scale=3):
|
| 401 |
regular_ref_text = gr.Textbox(label="Reference Text (Regular)", lines=8, scale=3)
|
| 402 |
+
with gr.Column(scale=1):
|
| 403 |
regular_ref_text_file = gr.File(label="Load Reference Text from File (.txt)", file_types=[".txt"], scale=1)
|
| 404 |
|
| 405 |
# Regular speech type (max 100)
|
|
|
|
| 421 |
insert_btn = gr.Button("Insert Label", variant="secondary")
|
| 422 |
with gr.Column(scale=3):
|
| 423 |
audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
| 424 |
+
with gr.Column(scale=3):
|
| 425 |
ref_text_input = gr.Textbox(label="Reference Text", lines=8, scale=3)
|
| 426 |
+
with gr.Column(scale=1):
|
| 427 |
ref_text_file_input = gr.File(
|
| 428 |
label="Load Reference Text from File (.txt)", file_types=[".txt"], scale=1
|
| 429 |
)
|