anzorq commited on
Commit
f9e42f2
Β·
1 Parent(s): 9b33f31

Update app.py

Browse files

capitalize langs in list

Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -35,7 +35,9 @@ description = "A simple demo of OpenAI's [**Whisper**](https://github.com/openai
35
  delay_slider = gr.inputs.Slider(minimum=0, maximum=5, default=0.2, label="Rate of transcription (1 sec + this value)")
36
 
37
  available_languages = sorted(tokenizer.TO_LANGUAGE_CODE.keys())
 
38
  available_languages = [AUTO_DETECT_LANG]+available_languages
 
39
  lang_dropdown = gr.inputs.Dropdown(choices=available_languages, label="Language", default=AUTO_DETECT_LANG, type="value")
40
 
41
  if lang_dropdown==AUTO_DETECT_LANG:
 
35
  delay_slider = gr.inputs.Slider(minimum=0, maximum=5, default=0.2, label="Rate of transcription (1 sec + this value)")
36
 
37
  available_languages = sorted(tokenizer.TO_LANGUAGE_CODE.keys())
38
+ available_languages = [lang.capitalize() for lang in available_languages]
39
  available_languages = [AUTO_DETECT_LANG]+available_languages
40
+
41
  lang_dropdown = gr.inputs.Dropdown(choices=available_languages, label="Language", default=AUTO_DETECT_LANG, type="value")
42
 
43
  if lang_dropdown==AUTO_DETECT_LANG: