try set default value for radio
Browse files
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(
|
|
|
|
|
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")
|