Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update src/populate.py
Browse files- src/populate.py +1 -5
src/populate.py
CHANGED
@@ -16,9 +16,7 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
16 |
|
17 |
|
18 |
df = pd.DataFrame.from_records(all_data_json)
|
19 |
-
|
20 |
-
df['Model'] = df['Model'].apply(lambda x: x.split('/')[-1] if isinstance(x, str) and '/' in x else x)
|
21 |
-
|
22 |
score_cols = [
|
23 |
'ALT E to J BLEU', 'ALT J to E BLEU', 'WikiCorpus E to J BLEU', 'WikiCorpus J to E BLEU',
|
24 |
'XL-Sum JA BLEU', 'XL-Sum ROUGE1', 'XL-Sum ROUGE2', 'XL-Sum ROUGE-Lsum'
|
@@ -36,8 +34,6 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
36 |
|
37 |
# filter out if any of the benchmarks have not been produced
|
38 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
39 |
-
print(f"Final leaderboard DataFrame:\n{df.head()}")
|
40 |
-
print(f"DataFrame shape: {df.shape}")
|
41 |
|
42 |
return df
|
43 |
|
|
|
16 |
|
17 |
|
18 |
df = pd.DataFrame.from_records(all_data_json)
|
19 |
+
|
|
|
|
|
20 |
score_cols = [
|
21 |
'ALT E to J BLEU', 'ALT J to E BLEU', 'WikiCorpus E to J BLEU', 'WikiCorpus J to E BLEU',
|
22 |
'XL-Sum JA BLEU', 'XL-Sum ROUGE1', 'XL-Sum ROUGE2', 'XL-Sum ROUGE-Lsum'
|
|
|
34 |
|
35 |
# filter out if any of the benchmarks have not been produced
|
36 |
df = df[has_no_nan_values(df, benchmark_cols)]
|
|
|
|
|
37 |
|
38 |
return df
|
39 |
|