mbarnig commited on
Commit
ba9e88e
·
verified ·
1 Parent(s): 6e9e968

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -6
app.py CHANGED
@@ -5,9 +5,8 @@ from huggingface_hub import hf_hub_download
5
 
6
  REPO_ID = "mbarnig/MULTI_LOD_TTS"
7
 
8
- my_title = "🇩🇪 🇫🇷 🇬🇧 🇵🇹 Mir schwätzen wéi de Lëtzebuerger ! 🇱🇺"
9
- my_description = "Multilingual-Multispeaker Text-to-Speech (TTS) synthesizer speaking the five current languages in Luxembourg. This model is based on VITS, thanks to 🐸 [Coqui.ai](https://coqui.ai/)."
10
-
11
  lb_text = "An der Zäit hunn sech den Nordwand an d'Sonn gestridden, wie vun hinnen zwee wuel méi staark wier, wéi e Wanderer, deen an ee waarme Mantel agepak war, iwwert de Wee koum."
12
  de_text = "Einst stritten sich Nordwind und Sonne, wer von ihnen beiden wohl der Stärkere wäre, als ein Wanderer, der in einen warmen Mantel gehüllt war, des Weges daherkam."
13
  fr_text = "La bise et le soleil se disputaient, chacun assurant qu'il était le plus fort, quand ils ont vu un voyageur qui s'avançait, enveloppé dans son manteau."
@@ -21,14 +20,28 @@ my_voices = [
21
 
22
  my_languages = [
23
  "Lëtzebuergesch",
24
- "Deutsch"
 
 
 
25
  ]
26
 
27
  my_examples = [
28
-
 
29
  ]
30
 
31
- my_article = "<h3>User guide</h3>"
 
 
 
 
 
 
 
 
 
 
32
 
33
  my_inputs = [
34
  gr.Textbox(lines=5, label="Input Text"),
 
5
 
6
  REPO_ID = "mbarnig/MULTI_LOD_TTS"
7
 
8
+ my_title = "🇱🇺 🇩🇪 🇫🇷 🇬🇧 🇵🇹 Mir schwätzen wéi de Lëtzebuerger ! "
9
+ my_description = "Multilingual-Multispeaker Text-to-Speech (TTS) synthesizer speaking the five current languages in Luxembourg. This model is based on VITS, thanks to 🐸 [Coqui.ai](https://coqui.ai/). I forked the [Coqui-TTS](https://github.com/mbarnig/TTS) projects and did some modifications and workarounds to run the inference in a HuggingFace space."
 
10
  lb_text = "An der Zäit hunn sech den Nordwand an d'Sonn gestridden, wie vun hinnen zwee wuel méi staark wier, wéi e Wanderer, deen an ee waarme Mantel agepak war, iwwert de Wee koum."
11
  de_text = "Einst stritten sich Nordwind und Sonne, wer von ihnen beiden wohl der Stärkere wäre, als ein Wanderer, der in einen warmen Mantel gehüllt war, des Weges daherkam."
12
  fr_text = "La bise et le soleil se disputaient, chacun assurant qu'il était le plus fort, quand ils ont vu un voyageur qui s'avançait, enveloppé dans son manteau."
 
20
 
21
  my_languages = [
22
  "Lëtzebuergesch",
23
+ "Deutsch",
24
+ "Français",
25
+ "English",
26
+ "Português"
27
  ]
28
 
29
  my_examples = [
30
+ [lb_text, "Male", "Lëtzebuergesch"],
31
+ [de_text, "Female", "Deutsch"]
32
  ]
33
 
34
+ my_article = "<h3>More Infos</h3>" \
35
+ "<table><tr>" \
36
+ "<td><image src = 'https://www.web3.lu/wp-content/uploads/2024/07/qubit-bookcovers-200.png' alt = 'bookcovers'></td>" \
37
+ "<td><p>User guide : 1. Click an example text below the input field and click the play button in the audio field at the right side of the screen.</p>" \
38
+ "<p>2. Enter your own text in the input field, select a voice and the related language of the text, click the submit button, wait for the audio generation and click the play button in the audio field at the right side of the screen.</p>" \
39
+ "<p>Technical informations about the development, the training, the model and the dataset are available on my <a href = 'https://github.com/mbarnig/TTS-for-LOD'>Github repository.</a></p>" \
40
+ "<p> If you are interested in knowing the whole history of technology projects in relation to the Luxembourgish language, the first volume of my book Qubit Lëtzebuerg is made for you." \
41
+ " In chapters 2.1.3. to 2.1.8. you will discover EPISTOLE-PC, CORTINA, SpellChecker, LOD, SYSTRAN, EUROTRA, CRETA, eTranslation, Google Translate, Yandex Translate, Euroscript," \
42
+ " Wordbee, LuNa, Strips, Spellux, Spacy, CyanogenMod, Gruut, eSpeak-NG-lb, MaryLux , lb_de_fr_en_pt_COQUI_VITS_TTS, Wav2Vec-XLS-R, Coqui STT, schreimaschinn.lu, Whisper, etc." \
43
+ " You will find all the details about this book on my website <a href = 'https://www.web3.lu'>web3.lu : Internet with a Brain.</a></p></td>" \
44
+ "</tr></table>"
45
 
46
  my_inputs = [
47
  gr.Textbox(lines=5, label="Input Text"),