This PR directly displays the language in the dropdown

#6
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -239,19 +239,19 @@ gr.Interface(
239
  label="Language",
240
  info="Select an output language for the synthesised speech",
241
  choices=[
242
- "en",
243
- "es",
244
- "fr",
245
- "de",
246
- "it",
247
- "pt",
248
- "pl",
249
- "tr",
250
- "ru",
251
- "nl",
252
- "cs",
253
- "ar",
254
- "zh-cn",
255
  ],
256
  max_choices=1,
257
  value="en",
 
239
  label="Language",
240
  info="Select an output language for the synthesised speech",
241
  choices=[
242
+ ["Arabic", "ar"],
243
+ ["Brazilian Portuguese", "pt"],
244
+ ["Mandarin Chinese", "zh-cn"],
245
+ ["Czech", "cs"],
246
+ ["Dutch", "nl"],
247
+ ["English", "en"],
248
+ ["French", "fr"],
249
+ ["German", "de"],
250
+ ["Italian", "it"],
251
+ ["Polish", "pl"],
252
+ ["Russian", "ru"],
253
+ ["Spanish", "es"],
254
+ ["Turkish", "tr"],
255
  ],
256
  max_choices=1,
257
  value="en",