Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
feat: convert reranker selection to dropdown list
Browse files
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(
|
|
|
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(
|