Spaces:
Running
Running
Kang Suhyun
commited on
Commit
•
8a26fe6
1
Parent(s):
3b5ccf8
[#55] Set default values for dropdowns (#59)
Browse filesThis change sets default values for the dropdowns in the app to make it easier for users to get started.
app.py
CHANGED
@@ -83,18 +83,21 @@ css = """
|
|
83 |
with gr.Blocks(title="Arena", css=css) as app:
|
84 |
with gr.Row():
|
85 |
category_radio = gr.Radio(
|
86 |
-
[category.value for category in response.Category],
|
|
|
87 |
label="Category",
|
88 |
info="The chosen category determines the instruction sent to the LLMs.")
|
89 |
|
90 |
source_language = gr.Dropdown(
|
91 |
choices=SUPPORTED_TRANSLATION_LANGUAGES,
|
|
|
92 |
label="Source language",
|
93 |
info="Choose the source language for translation.",
|
94 |
interactive=True,
|
95 |
visible=False)
|
96 |
target_language = gr.Dropdown(
|
97 |
choices=SUPPORTED_TRANSLATION_LANGUAGES,
|
|
|
98 |
label="Target language",
|
99 |
info="Choose the target language for translation.",
|
100 |
interactive=True,
|
|
|
83 |
with gr.Blocks(title="Arena", css=css) as app:
|
84 |
with gr.Row():
|
85 |
category_radio = gr.Radio(
|
86 |
+
choices=[category.value for category in response.Category],
|
87 |
+
value=response.Category.SUMMARIZE.value,
|
88 |
label="Category",
|
89 |
info="The chosen category determines the instruction sent to the LLMs.")
|
90 |
|
91 |
source_language = gr.Dropdown(
|
92 |
choices=SUPPORTED_TRANSLATION_LANGUAGES,
|
93 |
+
value="English",
|
94 |
label="Source language",
|
95 |
info="Choose the source language for translation.",
|
96 |
interactive=True,
|
97 |
visible=False)
|
98 |
target_language = gr.Dropdown(
|
99 |
choices=SUPPORTED_TRANSLATION_LANGUAGES,
|
100 |
+
value="Spanish",
|
101 |
label="Target language",
|
102 |
info="Choose the target language for translation.",
|
103 |
interactive=True,
|