Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
feat: implement versioning for long-doc retrieval only
Browse files
app.py
CHANGED
@@ -379,7 +379,6 @@ with demo:
|
|
379 |
lb_table_long_doc,
|
380 |
queue=True
|
381 |
)
|
382 |
-
"""
|
383 |
with gr.TabItem("Retrieval Only", id=21):
|
384 |
with gr.Row():
|
385 |
with gr.Column(scale=1):
|
@@ -393,21 +392,21 @@ with demo:
|
|
393 |
lb_table_retriever_long_doc = get_leaderboard_table(
|
394 |
lb_df_retriever_long_doc, datastore.types_long_doc)
|
395 |
|
396 |
-
|
397 |
datastore.raw_df_long_doc[COL_NAME_RERANKING_MODEL] == "NoReranker"
|
398 |
]
|
399 |
-
|
400 |
hidden_lb_table_retriever_long_doc = get_leaderboard_table(
|
401 |
-
|
402 |
)
|
403 |
|
404 |
selected_version.change(
|
405 |
-
|
406 |
[selected_version,],
|
407 |
[
|
408 |
selected_domains,
|
409 |
selected_langs,
|
410 |
-
|
411 |
lb_table_retriever_long_doc,
|
412 |
hidden_lb_table_retriever_long_doc
|
413 |
]
|
@@ -440,6 +439,7 @@ with demo:
|
|
440 |
lb_table_retriever_long_doc,
|
441 |
queue=True
|
442 |
)
|
|
|
443 |
with gr.TabItem("Reranking Only", id=22):
|
444 |
lb_df_reranker_ldoc = datastore.leaderboard_df_long_doc[
|
445 |
datastore.leaderboard_df_long_doc[COL_NAME_RETRIEVAL_MODEL] == BM25_LINK
|
|
|
379 |
lb_table_long_doc,
|
380 |
queue=True
|
381 |
)
|
|
|
382 |
with gr.TabItem("Retrieval Only", id=21):
|
383 |
with gr.Row():
|
384 |
with gr.Column(scale=1):
|
|
|
392 |
lb_table_retriever_long_doc = get_leaderboard_table(
|
393 |
lb_df_retriever_long_doc, datastore.types_long_doc)
|
394 |
|
395 |
+
hidden_lb_df_retriever_long_doc = datastore.raw_df_long_doc[
|
396 |
datastore.raw_df_long_doc[COL_NAME_RERANKING_MODEL] == "NoReranker"
|
397 |
]
|
398 |
+
hidden_lb_df_retriever_long_doc = reset_rank(hidden_lb_df_retriever_long_doc)
|
399 |
hidden_lb_table_retriever_long_doc = get_leaderboard_table(
|
400 |
+
hidden_lb_df_retriever_long_doc, datastore.types_long_doc, visible=False
|
401 |
)
|
402 |
|
403 |
selected_version.change(
|
404 |
+
update_datastore_long_doc,
|
405 |
[selected_version,],
|
406 |
[
|
407 |
selected_domains,
|
408 |
selected_langs,
|
409 |
+
selected_noreranker,
|
410 |
lb_table_retriever_long_doc,
|
411 |
hidden_lb_table_retriever_long_doc
|
412 |
]
|
|
|
439 |
lb_table_retriever_long_doc,
|
440 |
queue=True
|
441 |
)
|
442 |
+
"""
|
443 |
with gr.TabItem("Reranking Only", id=22):
|
444 |
lb_df_reranker_ldoc = datastore.leaderboard_df_long_doc[
|
445 |
datastore.leaderboard_df_long_doc[COL_NAME_RETRIEVAL_MODEL] == BM25_LINK
|