Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
feat-convert-reranker-selection-to-dropdown-0521
#12
by
nan
- opened
app.py
CHANGED
@@ -130,12 +130,13 @@ with demo:
|
|
130 |
# select reranking model
|
131 |
reranking_models = list(frozenset([eval_result.reranking_model for eval_result in raw_data]))
|
132 |
with gr.Row():
|
133 |
-
selected_rerankings = gr.
|
134 |
choices=reranking_models,
|
135 |
value=reranking_models,
|
136 |
label="Select the reranking models",
|
137 |
elem_id="reranking-select",
|
138 |
-
interactive=True
|
|
|
139 |
)
|
140 |
with gr.Row():
|
141 |
select_noreranker_only_btn = gr.ClearButton(
|
@@ -287,12 +288,13 @@ with demo:
|
|
287 |
# select reranking model
|
288 |
reranking_models = list(frozenset([eval_result.reranking_model for eval_result in raw_data]))
|
289 |
with gr.Row():
|
290 |
-
selected_rerankings = gr.
|
291 |
choices=reranking_models,
|
292 |
value=reranking_models,
|
293 |
label="Select the reranking models",
|
294 |
elem_id="reranking-select-long-doc",
|
295 |
-
interactive=True
|
|
|
296 |
)
|
297 |
with gr.Row():
|
298 |
select_noreranker_only_btn = gr.ClearButton(
|
|
|
130 |
# select reranking model
|
131 |
reranking_models = list(frozenset([eval_result.reranking_model for eval_result in raw_data]))
|
132 |
with gr.Row():
|
133 |
+
selected_rerankings = gr.Dropdown(
|
134 |
choices=reranking_models,
|
135 |
value=reranking_models,
|
136 |
label="Select the reranking models",
|
137 |
elem_id="reranking-select",
|
138 |
+
interactive=True,
|
139 |
+
multiselect=True
|
140 |
)
|
141 |
with gr.Row():
|
142 |
select_noreranker_only_btn = gr.ClearButton(
|
|
|
288 |
# select reranking model
|
289 |
reranking_models = list(frozenset([eval_result.reranking_model for eval_result in raw_data]))
|
290 |
with gr.Row():
|
291 |
+
selected_rerankings = gr.Dropdown(
|
292 |
choices=reranking_models,
|
293 |
value=reranking_models,
|
294 |
label="Select the reranking models",
|
295 |
elem_id="reranking-select-long-doc",
|
296 |
+
interactive=True,
|
297 |
+
multiselect=True,
|
298 |
)
|
299 |
with gr.Row():
|
300 |
select_noreranker_only_btn = gr.ClearButton(
|