richylyq commited on
Commit
76ef102
1 Parent(s): b2d474f

try set default value for radio

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -168,7 +168,9 @@ myTheme = myTheme()
168
 
169
  with gr.Blocks(theme=myTheme) as demo:
170
  article = gr.Textbox(label="Article")
171
- toolkit_select = gr.Radio(["OPUS", "NLLB"], label="Select Translation Model")
 
 
172
  lang_select = gr.Radio(["English", "Chinese"], label="Select Desired Language")
173
  result = gr.Textbox(label="Translated Result")
174
  trans_btn = gr.Button("Translate")
 
168
 
169
  with gr.Blocks(theme=myTheme) as demo:
170
  article = gr.Textbox(label="Article")
171
+ toolkit_select = gr.Radio(
172
+ ["OPUS", "NLLB"], label="Select Translation Model", value="OPUS"
173
+ )
174
  lang_select = gr.Radio(["English", "Chinese"], label="Select Desired Language")
175
  result = gr.Textbox(label="Translated Result")
176
  trans_btn = gr.Button("Translate")