Commit
·
7c1c351
1
Parent(s):
fd428c8
update
Browse files- app.py +3 -1
- event_handlers.py +1 -1
app.py
CHANGED
|
@@ -79,7 +79,9 @@ with gr.Blocks(
|
|
| 79 |
gr.Markdown("### Text Input")
|
| 80 |
text_input_block = gr.Textbox(
|
| 81 |
lines=30,
|
| 82 |
-
placeholder="If your text includes multiple long sentences, select a voice prompt to have consistent speech
|
|
|
|
|
|
|
| 83 |
label="Text Prompts",
|
| 84 |
)
|
| 85 |
generate_btn = gr.Button("Generate", variant="primary")
|
|
|
|
| 79 |
gr.Markdown("### Text Input")
|
| 80 |
text_input_block = gr.Textbox(
|
| 81 |
lines=30,
|
| 82 |
+
placeholder="""If your text includes multiple long sentences, select a voice prompt to have consistent speech.
|
| 83 |
+
Put one sentence on one line.
|
| 84 |
+
Do not use long sentence, split them out to multiple sentences with each less than 15 seconds worth of speech""",
|
| 85 |
label="Text Prompts",
|
| 86 |
)
|
| 87 |
generate_btn = gr.Button("Generate", variant="primary")
|
event_handlers.py
CHANGED
|
@@ -364,7 +364,7 @@ def generate_batch_audio(
|
|
| 364 |
)
|
| 365 |
|
| 366 |
# split the text into sentences
|
| 367 |
-
sentences = text.split("
|
| 368 |
|
| 369 |
gr.Info("Generating Audio....", duration=120)
|
| 370 |
waves = generate_audio(
|
|
|
|
| 364 |
)
|
| 365 |
|
| 366 |
# split the text into sentences
|
| 367 |
+
sentences = text.split("\n")
|
| 368 |
|
| 369 |
gr.Info("Generating Audio....", duration=120)
|
| 370 |
waves = generate_audio(
|