Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
β’
17aa841
1
Parent(s):
f06ca02
update
Browse files- pages/leaderboard.py +4 -3
pages/leaderboard.py
CHANGED
@@ -22,9 +22,10 @@ data = {
|
|
22 |
df = pd.DataFrame(data)
|
23 |
df = df.sort_values(by='Rouge Score', ascending=False)
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
28 |
|
29 |
def update_leaderboard(sort_by):
|
30 |
# In a real implementation, this would filter the data based on the category
|
|
|
22 |
df = pd.DataFrame(data)
|
23 |
df = df.sort_values(by='Rouge Score', ascending=False)
|
24 |
|
25 |
+
# Define a list of medal emojis
|
26 |
+
medals = ['π
', 'π₯', 'π₯']
|
27 |
+
for i in range(3):
|
28 |
+
df.loc[i, 'Authors'] = f"{medals[i]} {df.loc[i, 'Authors']}"
|
29 |
|
30 |
def update_leaderboard(sort_by):
|
31 |
# In a real implementation, this would filter the data based on the category
|