kz209 commited on
Commit
17aa841
β€’
1 Parent(s): f06ca02
Files changed (1) hide show
  1. 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
- df.loc[0]['Authors'] = 'πŸ… '+df.loc[0]['Authors']
26
- df.loc[1]['Authors'] = 'πŸ₯ˆ '+df.loc[1]['Authors']
27
- df.loc[2]['Authors'] = 'πŸ₯‰ '+df.loc[2]['Authors']
 
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