Clémentine commited on
Commit
58860b6
1 Parent(s): fe64417

remove verification on items numbers to avoid NonMatchingSplitsSizesError

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,7 +30,7 @@ YEAR_VERSION = "2023"
30
  os.makedirs("scored", exist_ok=True)
31
 
32
  # Display the results
33
- eval_results = load_dataset(RESULTS_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload")
34
  def get_dataframe_from_results(eval_results, split):
35
  local_df = eval_results[split]
36
  local_df = local_df.map(lambda row: {"model": model_hyperlink(row["url"], row["model"])})
@@ -151,7 +151,7 @@ def add_new_eval(
151
 
152
 
153
  def refresh():
154
- eval_results = load_dataset(RESULTS_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload")
155
  eval_dataframe_val = get_dataframe_from_results(eval_results=eval_results, split="validation")
156
  eval_dataframe_test = get_dataframe_from_results(eval_results=eval_results, split="test")
157
  return eval_dataframe_val, eval_dataframe_test
 
30
  os.makedirs("scored", exist_ok=True)
31
 
32
  # Display the results
33
+ eval_results = load_dataset(RESULTS_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", ignore_verifications=True)
34
  def get_dataframe_from_results(eval_results, split):
35
  local_df = eval_results[split]
36
  local_df = local_df.map(lambda row: {"model": model_hyperlink(row["url"], row["model"])})
 
151
 
152
 
153
  def refresh():
154
+ eval_results = load_dataset(RESULTS_DATASET, YEAR_VERSION, token=TOKEN, download_mode="force_redownload", ignore_verifications=True)
155
  eval_dataframe_val = get_dataframe_from_results(eval_results=eval_results, split="validation")
156
  eval_dataframe_test = get_dataframe_from_results(eval_results=eval_results, split="test")
157
  return eval_dataframe_val, eval_dataframe_test