Spaces:
Runtime error
Runtime error
Update app.py
Browse filescapitalize langs in list
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:
|