Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -205,7 +205,7 @@ with gr.Blocks() as app_credits:
|
|
205 |
with gr.Blocks() as app_tts:
|
206 |
gr.Markdown("# Batched TTS")
|
207 |
ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
208 |
-
with gr.Row(
|
209 |
gen_text_input = gr.Textbox(
|
210 |
label="Text to Generate",
|
211 |
lines=10,
|
@@ -215,7 +215,7 @@ with gr.Blocks() as app_tts:
|
|
215 |
gen_text_file = gr.File(label="Load Text to Generate from File (.txt)", file_types=[".txt"], scale=1)
|
216 |
generate_btn = gr.Button("Synthesize", variant="primary")
|
217 |
with gr.Accordion("Advanced Settings", open=False):
|
218 |
-
with gr.Row(
|
219 |
ref_text_input = gr.Textbox(
|
220 |
label="Reference Text",
|
221 |
info="Leave blank to automatically transcribe the reference audio. If you enter text or upload a file, it will override automatic transcription.",
|
@@ -399,7 +399,7 @@ 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=4
|
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 |
|
@@ -422,7 +422,7 @@ 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.Row(scale=4
|
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
|
@@ -484,7 +484,7 @@ with gr.Blocks() as app_multistyle:
|
|
484 |
)
|
485 |
|
486 |
# Text input for the prompt
|
487 |
-
with gr.Row(
|
488 |
gen_text_input_multistyle = gr.Textbox(
|
489 |
label="Text to Generate",
|
490 |
lines=10,
|
@@ -706,7 +706,7 @@ Have a conversation with an AI using your reference voice!
|
|
706 |
ref_audio_chat = gr.Audio(label="Reference Audio", type="filepath")
|
707 |
with gr.Column():
|
708 |
with gr.Accordion("Advanced Settings", open=False):
|
709 |
-
with gr.Row(
|
710 |
ref_text_chat = gr.Textbox(
|
711 |
label="Reference Text",
|
712 |
info="Optional: Leave blank to auto-transcribe",
|
|
|
205 |
with gr.Blocks() as app_tts:
|
206 |
gr.Markdown("# Batched TTS")
|
207 |
ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
208 |
+
with gr.Row():
|
209 |
gen_text_input = gr.Textbox(
|
210 |
label="Text to Generate",
|
211 |
lines=10,
|
|
|
215 |
gen_text_file = gr.File(label="Load Text to Generate from File (.txt)", file_types=[".txt"], scale=1)
|
216 |
generate_btn = gr.Button("Synthesize", variant="primary")
|
217 |
with gr.Accordion("Advanced Settings", open=False):
|
218 |
+
with gr.Row():
|
219 |
ref_text_input = gr.Textbox(
|
220 |
label="Reference Text",
|
221 |
info="Leave blank to automatically transcribe the reference audio. If you enter text or upload a file, it will override automatic transcription.",
|
|
|
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=4):
|
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 |
|
|
|
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.Row(scale=4):
|
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
|
|
|
484 |
)
|
485 |
|
486 |
# Text input for the prompt
|
487 |
+
with gr.Row():
|
488 |
gen_text_input_multistyle = gr.Textbox(
|
489 |
label="Text to Generate",
|
490 |
lines=10,
|
|
|
706 |
ref_audio_chat = gr.Audio(label="Reference Audio", type="filepath")
|
707 |
with gr.Column():
|
708 |
with gr.Accordion("Advanced Settings", open=False):
|
709 |
+
with gr.Row():
|
710 |
ref_text_chat = gr.Textbox(
|
711 |
label="Reference Text",
|
712 |
info="Optional: Leave blank to auto-transcribe",
|