Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,9 @@ tokenizer = AutoTokenizer.from_pretrained(repo_id, token=HF_TOKEN)
|
|
25 |
SAMPLE_RATE = 44000 #feature_extractor.sampling_rate
|
26 |
SEED = 42
|
27 |
|
28 |
-
default_text = "Estos pendientes que me los he puesto hoy dia,
|
|
|
|
|
29 |
examples = [
|
30 |
[
|
31 |
"Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we're scaling up the amount of training data by a factor of five times.",
|
@@ -151,7 +153,7 @@ with gr.Blocks(css=css) as block:
|
|
151 |
with gr.Row():
|
152 |
with gr.Column():
|
153 |
input_text = gr.Textbox(label="Input Text", lines=2, value=default_text, elem_id="input_text")
|
154 |
-
description = gr.Textbox(label="Description", lines=2, value=
|
155 |
run_button = gr.Button("Generate Audio", variant="primary")
|
156 |
with gr.Column():
|
157 |
audio_out = gr.Audio(label="Parler-TTS generation", type="numpy", elem_id="audio_out")
|
|
|
25 |
SAMPLE_RATE = 44000 #feature_extractor.sampling_rate
|
26 |
SEED = 42
|
27 |
|
28 |
+
default_text = "Estos pendientes que me los he puesto hoy dia, saben que marca es?"
|
29 |
+
default_description = "A female speaker from Peru delivers her speech in a somewhat quiet and confined space, with a mildly monotone tone, a slightly low pitch, and a slow pace. The recording appears to be of good quality with only a slight background noise."
|
30 |
+
|
31 |
examples = [
|
32 |
[
|
33 |
"Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we're scaling up the amount of training data by a factor of five times.",
|
|
|
153 |
with gr.Row():
|
154 |
with gr.Column():
|
155 |
input_text = gr.Textbox(label="Input Text", lines=2, value=default_text, elem_id="input_text")
|
156 |
+
description = gr.Textbox(label="Description", lines=2, value=default_description, elem_id="input_description")
|
157 |
run_button = gr.Button("Generate Audio", variant="primary")
|
158 |
with gr.Column():
|
159 |
audio_out = gr.Audio(label="Parler-TTS generation", type="numpy", elem_id="audio_out")
|