Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
eb0f9c5
1 Parent(s): 443f557

fix-bug-in-selecting-domain-0522 (#13)

Browse files

- fix: fix the bug in selecting domains (b516d0f59e471ea119e60510c441cbb6f378a0d7)

Files changed (2) hide show
  1. app.py +1 -0
  2. 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
- reset_ranking: bool = True,
158
- show_revision_and_timestamp: bool = False
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
- reset_ranking: bool = True,
172
- show_revision_and_timestamp: bool = False
 
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)