mbarnig commited on
Commit
7eaa3ae
·
verified ·
1 Parent(s): 076f32b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,12 +43,12 @@ my_examples = [
43
  my_article = "<h3>User guide</h3><p>1. Press the Submit button to generate a speech file with the default values. 2. Change the default values by clicking an example row. 3. Select a language and a voice and enter your own text. Have fun!</p><p>Go to <a href='https://www.web3.lu/category/audio-technologies/'>Internet with a Brain</a> to read some technical infos.</p>"
44
 
45
  my_inputs = [
46
- gr.inputs.Textbox(lines=5, label="Input Text", default=lb_text),
47
- gr.inputs.Radio(label="Speaker", choices = TTS_VOICES, default = "Judith"),
48
- gr.inputs.Radio(label="Language", choices = TTS_LANGUAGES, default = "Lëtzebuergesch"),
49
  ]
50
 
51
- my_outputs = gr.outputs.Audio(type="file", label="Output Audio")
52
 
53
  def tts(text: str, speaker_idx: str, language_idx: str):
54
  best_model_path = hf_hub_download(repo_id=REPO_ID, filename="best_model.pth")
 
43
  my_article = "<h3>User guide</h3><p>1. Press the Submit button to generate a speech file with the default values. 2. Change the default values by clicking an example row. 3. Select a language and a voice and enter your own text. Have fun!</p><p>Go to <a href='https://www.web3.lu/category/audio-technologies/'>Internet with a Brain</a> to read some technical infos.</p>"
44
 
45
  my_inputs = [
46
+ gr.Textbox(lines=5, label="Input Text", default=lb_text),
47
+ gr.Radio(label="Speaker", choices = TTS_VOICES, default = "Judith"),
48
+ gr.Radio(label="Language", choices = TTS_LANGUAGES, default = "Lëtzebuergesch"),
49
  ]
50
 
51
+ my_outputs = gr.Audio(type="file", label="Output Audio")
52
 
53
  def tts(text: str, speaker_idx: str, language_idx: str):
54
  best_model_path = hf_hub_download(repo_id=REPO_ID, filename="best_model.pth")