Spaces:
AIR-Bench
/
Running on CPU Upgrade

nan commited on
Commit
d62c98e
1 Parent(s): ec8e2d4

refactor: refactor formatting

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -73,7 +73,15 @@ def update_metric_qa(
73
  show_revision_and_timestamp: bool,
74
  ):
75
  return update_metric(
76
- datastore, "qa", metric, domains, langs, reranking_model, query, show_anonymous, show_revision_and_timestamp
 
 
 
 
 
 
 
 
77
  )
78
 
79
 
@@ -107,7 +115,8 @@ def update_datastore(version):
107
  selected_langs = get_language_dropdown(QABenchmarks[datastore.slug])
108
  selected_rerankings = get_reranking_dropdown(datastore.reranking_models)
109
  leaderboard_table = get_leaderboard_table(datastore.leaderboard_df_qa, datastore.types_qa)
110
- hidden_leaderboard_table = get_leaderboard_table(datastore.raw_df_qa, datastore.types_qa, visible=False)
 
111
  return selected_domains, selected_langs, selected_rerankings, leaderboard_table, hidden_leaderboard_table
112
 
113
 
@@ -119,9 +128,8 @@ def update_datastore_long_doc(version):
119
  selected_langs = get_language_dropdown(LongDocBenchmarks[datastore.slug])
120
  selected_rerankings = get_reranking_dropdown(datastore.reranking_models)
121
  leaderboard_table = get_leaderboard_table(datastore.leaderboard_df_long_doc, datastore.types_long_doc)
122
- hidden_leaderboard_table = get_leaderboard_table(
123
- datastore.raw_df_long_doc, datastore.types_long_doc, visible=False
124
- )
125
  return selected_domains, selected_langs, selected_rerankings, leaderboard_table, hidden_leaderboard_table
126
 
127
 
 
73
  show_revision_and_timestamp: bool,
74
  ):
75
  return update_metric(
76
+ datastore,
77
+ "qa",
78
+ metric,
79
+ domains,
80
+ langs,
81
+ reranking_model,
82
+ query,
83
+ show_anonymous,
84
+ show_revision_and_timestamp
85
  )
86
 
87
 
 
115
  selected_langs = get_language_dropdown(QABenchmarks[datastore.slug])
116
  selected_rerankings = get_reranking_dropdown(datastore.reranking_models)
117
  leaderboard_table = get_leaderboard_table(datastore.leaderboard_df_qa, datastore.types_qa)
118
+ hidden_leaderboard_table = \
119
+ get_leaderboard_table(datastore.raw_df_qa, datastore.types_qa, visible=False)
120
  return selected_domains, selected_langs, selected_rerankings, leaderboard_table, hidden_leaderboard_table
121
 
122
 
 
128
  selected_langs = get_language_dropdown(LongDocBenchmarks[datastore.slug])
129
  selected_rerankings = get_reranking_dropdown(datastore.reranking_models)
130
  leaderboard_table = get_leaderboard_table(datastore.leaderboard_df_long_doc, datastore.types_long_doc)
131
+ hidden_leaderboard_table = \
132
+ get_leaderboard_table(datastore.raw_df_long_doc, datastore.types_long_doc, visible=False)
 
133
  return selected_domains, selected_langs, selected_rerankings, leaderboard_table, hidden_leaderboard_table
134
 
135