Kang Suhyun commited on
Commit
d5ea1a7
1 Parent(s): af3d965

[#124] Update default target language value to Korean (#126)

Browse files

This change updates the default target language value to Korean since Korean is the most frequently used target language in the app.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,14 +111,14 @@ with gr.Blocks(title="Yanolja Arena", css=css) as app:
111
 
112
  source_language = gr.Dropdown(
113
  choices=SUPPORTED_LANGUAGES,
114
- value="English",
115
  label="Source language",
116
  info="Choose the source language for translation.",
117
  interactive=True,
118
  visible=False)
119
  target_language = gr.Dropdown(
120
  choices=SUPPORTED_LANGUAGES,
121
- value="Spanish",
122
  label="Target language",
123
  info="Choose the target language for translation.",
124
  interactive=True,
 
111
 
112
  source_language = gr.Dropdown(
113
  choices=SUPPORTED_LANGUAGES,
114
+ value=lingua.Language.ENGLISH.name.capitalize(),
115
  label="Source language",
116
  info="Choose the source language for translation.",
117
  interactive=True,
118
  visible=False)
119
  target_language = gr.Dropdown(
120
  choices=SUPPORTED_LANGUAGES,
121
+ value=lingua.Language.KOREAN.name.capitalize(),
122
  label="Target language",
123
  info="Choose the target language for translation.",
124
  interactive=True,