Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix: fix the bug in selecting domains
Browse files- app.py +1 -0
- src/utils.py +5 -4
app.py
CHANGED
@@ -243,6 +243,7 @@ with demo:
|
|
243 |
selected_rerankings,
|
244 |
search_bar,
|
245 |
show_anonymous,
|
|
|
246 |
],
|
247 |
leaderboard_table,
|
248 |
queue=True,
|
|
|
243 |
selected_rerankings,
|
244 |
search_bar,
|
245 |
show_anonymous,
|
246 |
+
show_revision_and_timestamp
|
247 |
],
|
248 |
leaderboard_table,
|
249 |
queue=True,
|
src/utils.py
CHANGED
@@ -154,8 +154,8 @@ def update_table(
|
|
154 |
reranking_query: list,
|
155 |
query: str,
|
156 |
show_anonymous: bool,
|
157 |
-
|
158 |
-
|
159 |
):
|
160 |
return _update_table(
|
161 |
"qa", hidden_df, domains, langs, reranking_query, query, show_anonymous, reset_ranking, show_revision_and_timestamp)
|
@@ -168,8 +168,9 @@ def update_table_long_doc(
|
|
168 |
reranking_query: list,
|
169 |
query: str,
|
170 |
show_anonymous: bool,
|
171 |
-
|
172 |
-
|
|
|
173 |
):
|
174 |
return _update_table(
|
175 |
"long-doc", hidden_df, domains, langs, reranking_query, query, show_anonymous, reset_ranking, show_revision_and_timestamp)
|
|
|
154 |
reranking_query: list,
|
155 |
query: str,
|
156 |
show_anonymous: bool,
|
157 |
+
show_revision_and_timestamp: bool = False,
|
158 |
+
reset_ranking: bool = True
|
159 |
):
|
160 |
return _update_table(
|
161 |
"qa", hidden_df, domains, langs, reranking_query, query, show_anonymous, reset_ranking, show_revision_and_timestamp)
|
|
|
168 |
reranking_query: list,
|
169 |
query: str,
|
170 |
show_anonymous: bool,
|
171 |
+
show_revision_and_timestamp: bool = False,
|
172 |
+
reset_ranking: bool = True
|
173 |
+
|
174 |
):
|
175 |
return _update_table(
|
176 |
"long-doc", hidden_df, domains, langs, reranking_query, query, show_anonymous, reset_ranking, show_revision_and_timestamp)
|