Spaces:
Running
Running
Start rank from 1
Browse files
app.py
CHANGED
@@ -4,6 +4,7 @@ from pathlib import Path
|
|
4 |
from re import sub
|
5 |
|
6 |
import pandas as pd
|
|
|
7 |
import requests
|
8 |
import streamlit as st
|
9 |
from datasets import get_dataset_config_names
|
@@ -69,8 +70,10 @@ def format_submissions(submissions):
|
|
69 |
|
70 |
df = pd.DataFrame(submission_data)
|
71 |
df.insert(2, "Overall", df[TASKS].mean(axis=1))
|
72 |
-
df = df.copy().sort_values("Overall", ascending=False)
|
73 |
df.rename(columns={k: v for k, v in zip(TASKS, FORMATTED_TASK_NAMES)}, inplace=True)
|
|
|
|
|
74 |
return df
|
75 |
|
76 |
|
|
|
4 |
from re import sub
|
5 |
|
6 |
import pandas as pd
|
7 |
+
import numpy as np
|
8 |
import requests
|
9 |
import streamlit as st
|
10 |
from datasets import get_dataset_config_names
|
|
|
70 |
|
71 |
df = pd.DataFrame(submission_data)
|
72 |
df.insert(2, "Overall", df[TASKS].mean(axis=1))
|
73 |
+
df = df.copy().sort_values("Overall", ascending=False)
|
74 |
df.rename(columns={k: v for k, v in zip(TASKS, FORMATTED_TASK_NAMES)}, inplace=True)
|
75 |
+
# Start ranking from 1
|
76 |
+
df.insert(0, "Rank", np.arange(1, len(df) + 1))
|
77 |
return df
|
78 |
|
79 |
|