saidivyesh commited on
Commit
40d7d69
·
verified ·
1 Parent(s): d5361d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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","southern_male", split="train")
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 Turkish text to convert to speech")
137
  ],
138
  outputs=[
139
  gr.Audio(label="Generated Speech", type="numpy")
140
  ],
141
- title="Turkish SpeechT5 Text-to-Speech Demo",
142
- description="Enter Turkish text, and listen to the generated speech."
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)