Spaces:
Running
Running
Update leaderboard display
Browse files
app.py
CHANGED
@@ -87,11 +87,11 @@ Template for citing our benchmark.
|
|
87 |
"no_data_message": "Нет данных. Пожалуйста, отправьте результаты.",
|
88 |
"by_type_tab_title": "По типам вопросов",
|
89 |
"category_display_names": {
|
90 |
-
"simple": "
|
91 |
-
"set": "
|
92 |
"mh": "Multi-hop",
|
93 |
-
"cond": "
|
94 |
-
"comp": "
|
95 |
},
|
96 |
"no_data_category_template": "Нет данных для категории {}.",
|
97 |
"category_performance_template": "#### Производительность на {}",
|
@@ -427,13 +427,13 @@ def create_category_df(df, category, retrieval_col, generation_col):
|
|
427 |
category_df = df.copy()
|
428 |
|
429 |
# Calculate total score for this category
|
430 |
-
category_df[f'
|
431 |
|
432 |
# Sort by total score
|
433 |
-
category_df = category_df.sort_values(f'
|
434 |
|
435 |
# Select columns for display
|
436 |
-
category_cols = ['Model', 'Embeddings', 'Retriever', retrieval_col, generation_col, f'
|
437 |
|
438 |
# Rename columns for display
|
439 |
category_df = category_df[category_cols].rename(columns={
|
|
|
87 |
"no_data_message": "Нет данных. Пожалуйста, отправьте результаты.",
|
88 |
"by_type_tab_title": "По типам вопросов",
|
89 |
"category_display_names": {
|
90 |
+
"simple": "Simple",
|
91 |
+
"set": "Set",
|
92 |
"mh": "Multi-hop",
|
93 |
+
"cond": "Conditional",
|
94 |
+
"comp": "Comparison"
|
95 |
},
|
96 |
"no_data_category_template": "Нет данных для категории {}.",
|
97 |
"category_performance_template": "#### Производительность на {}",
|
|
|
427 |
category_df = df.copy()
|
428 |
|
429 |
# Calculate total score for this category
|
430 |
+
category_df[f'Score'] = category_df[retrieval_col] + category_df[generation_col]
|
431 |
|
432 |
# Sort by total score
|
433 |
+
category_df = category_df.sort_values(f'Score', ascending=False)
|
434 |
|
435 |
# Select columns for display
|
436 |
+
category_cols = ['Model', 'Embeddings', 'Retriever', retrieval_col, generation_col, f'Score']
|
437 |
|
438 |
# Rename columns for display
|
439 |
category_df = category_df[category_cols].rename(columns={
|