Sandiago21 commited on
Commit
0c9217e
·
1 Parent(s): c2f16c8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -22,6 +22,13 @@ replacements = [
22
  ("ü", "u"),
23
  ]
24
 
 
 
 
 
 
 
 
25
  def cleanup_text(text):
26
  for src, dst in replacements:
27
  text = text.replace(src, dst)
@@ -39,5 +46,8 @@ syntesize_speech_gradio = gr.Interface(
39
  synthesize_speech,
40
  inputs = gr.Textbox(label="Text", placeholder="Type something here..."),
41
  outputs=gr.Audio(),
 
 
 
42
  ).launch()
43
 
 
22
  ("ü", "u"),
23
  ]
24
 
25
+ title = "Text-to-Speech"
26
+ description = """
27
+ Demo for text-to-speech translation in Spanish. Demo uses [Sandiago21/speecht5_finetuned_facebook_voxpopuli_spanish](https://huggingface.co/Sandiago21/speecht5_finetuned_facebook_voxpopuli_spanish) checkpoint, which is based on Microsoft's
28
+ [SpeechT5 TTS](https://huggingface.co/microsoft/speecht5_tts) model and is fine-tuned in Spanish Audio dataset
29
+ ![Text-to-Speech (TTS)"](https://geekflare.com/wp-content/uploads/2021/07/texttospeech-1200x385.png "Diagram of Text-to-Speech (TTS)")
30
+ """
31
+
32
  def cleanup_text(text):
33
  for src, dst in replacements:
34
  text = text.replace(src, dst)
 
46
  synthesize_speech,
47
  inputs = gr.Textbox(label="Text", placeholder="Type something here..."),
48
  outputs=gr.Audio(),
49
+ examples=["Precisamente en la mayoría de países estamos produciendo tres veces más energía de la que consumimos, porque orientamos la producción a los momentos pico de consumo."],
50
+ title=title,
51
+ description=description,
52
  ).launch()
53