Spaces:
Running
Running
Update leaderboard display
Browse files
app.py
CHANGED
@@ -427,7 +427,7 @@ 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'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)
|
|
|
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]).round(4)
|
431 |
|
432 |
# Sort by total score
|
433 |
category_df = category_df.sort_values(f'Score', ascending=False)
|