Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def load_models_and_data():
|
|
25 |
)
|
26 |
|
27 |
# Load a sample from a dataset for default embedding
|
28 |
-
dataset = load_dataset("ylacombe/english_dialects","
|
29 |
example = dataset[304]
|
30 |
|
31 |
return model, processor, vocoder, speaker_model, example
|
@@ -133,13 +133,13 @@ def text_to_speech(text, audio_file=None):
|
|
133 |
iface = gr.Interface(
|
134 |
fn=text_to_speech,
|
135 |
inputs=[
|
136 |
-
gr.Textbox(label="Enter
|
137 |
],
|
138 |
outputs=[
|
139 |
gr.Audio(label="Generated Speech", type="numpy")
|
140 |
],
|
141 |
-
title="
|
142 |
-
description="Enter
|
143 |
)
|
144 |
|
145 |
iface.launch(share=True)
|
|
|
25 |
)
|
26 |
|
27 |
# Load a sample from a dataset for default embedding
|
28 |
+
dataset = load_dataset("ylacombe/english_dialects","southern_female", split="train")
|
29 |
example = dataset[304]
|
30 |
|
31 |
return model, processor, vocoder, speaker_model, example
|
|
|
133 |
iface = gr.Interface(
|
134 |
fn=text_to_speech,
|
135 |
inputs=[
|
136 |
+
gr.Textbox(label="Enter English text to convert to speech")
|
137 |
],
|
138 |
outputs=[
|
139 |
gr.Audio(label="Generated Speech", type="numpy")
|
140 |
],
|
141 |
+
title="English SpeechT5 Text-to-Speech Demo",
|
142 |
+
description="Enter English text, and listen to the generated speech."
|
143 |
)
|
144 |
|
145 |
iface.launch(share=True)
|