Fabrice-TIERCELIN commited on
Commit
6aae304
1 Parent(s): d3b67ac

This PR directly displays the language in the dropdown

Browse files
Files changed (1) hide show
  1. app.py +17 -21
app.py CHANGED
@@ -416,10 +416,6 @@ description = """
416
 
417
  This demo is currently running **XTTS v2.0.3** <a href="https://huggingface.co/coqui/XTTS-v2">XTTS</a> is a multilingual text-to-speech and voice-cloning model. This demo features zero-shot voice cloning, however, you can fine-tune XTTS for better results. Leave a star 🌟 on Github <a href="https://github.com/coqui-ai/TTS">🐸TTS</a>, where our open-source inference and training code lives.
418
 
419
- <br/>
420
-
421
- Supported languages: Arabic: ar, Brazilian Portuguese: pt , Mandarin Chinese: zh-cn, Czech: cs, Dutch: nl, English: en, French: fr, German: de, Italian: it, Polish: pl, Russian: ru, Spanish: es, Turkish: tr, Japanese: ja, Korean: ko, Hungarian: hu, Hindi: hi
422
-
423
  <br/>
424
  """
425
 
@@ -626,23 +622,23 @@ with gr.Blocks(analytics_enabled=False) as demo:
626
  label="Language",
627
  info="Select an output language for the synthesised speech",
628
  choices=[
629
- "en",
630
- "es",
631
- "fr",
632
- "de",
633
- "it",
634
- "pt",
635
- "pl",
636
- "tr",
637
- "ru",
638
- "nl",
639
- "cs",
640
- "ar",
641
- "zh-cn",
642
- "ja",
643
- "ko",
644
- "hu",
645
- "hi"
646
  ],
647
  max_choices=1,
648
  value="en",
 
416
 
417
  This demo is currently running **XTTS v2.0.3** <a href="https://huggingface.co/coqui/XTTS-v2">XTTS</a> is a multilingual text-to-speech and voice-cloning model. This demo features zero-shot voice cloning, however, you can fine-tune XTTS for better results. Leave a star 🌟 on Github <a href="https://github.com/coqui-ai/TTS">🐸TTS</a>, where our open-source inference and training code lives.
418
 
 
 
 
 
419
  <br/>
420
  """
421
 
 
622
  label="Language",
623
  info="Select an output language for the synthesised speech",
624
  choices=[
625
+ ["Arabic": "ar"],
626
+ ["Brazilian Portuguese": "pt"],
627
+ ["Mandarin Chinese": "zh-cn"],
628
+ ["Czech": "cs"],
629
+ ["Dutch": "nl"],
630
+ ["English": "en"],
631
+ ["French": "fr"],
632
+ ["German": "de"],
633
+ ["Italian": "it"],
634
+ ["Polish": "pl"],
635
+ ["Russian": "ru"],
636
+ ["Spanish": "es"],
637
+ ["Turkish": "tr"],
638
+ ["Japanese": "ja"],
639
+ ["Korean": "ko"],
640
+ ["Hungarian": "hu"],
641
+ ["Hindi": "hi"]
642
  ],
643
  max_choices=1,
644
  value="en",