Didier commited on
Commit
eadcb10
·
1 Parent(s): 27ca4a9

Using gr.Dropdown()

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -113,13 +113,13 @@ with gr.Blocks() as demo:
113
 
114
  # Source and target languages
115
  with gr.Row():
116
- src_lang = gr.Radio(
117
  choices=model_translation.language_codes.items(),
118
  value="auto",
119
  label="Source language",
120
  render=True
121
  )
122
- tgt_lang = gr.Radio(
123
  choices=model_translation.tgt_language_codes.items(),
124
  value="en",
125
  label="Target language",
 
113
 
114
  # Source and target languages
115
  with gr.Row():
116
+ src_lang = gr.Dropdown(
117
  choices=model_translation.language_codes.items(),
118
  value="auto",
119
  label="Source language",
120
  render=True
121
  )
122
+ tgt_lang = gr.Dropdown(
123
  choices=model_translation.tgt_language_codes.items(),
124
  value="en",
125
  label="Target language",