kz209 commited on
Commit
07b83f1
1 Parent(s): 64df9ac
Files changed (1) hide show
  1. pages/leaderboard.py +1 -1
pages/leaderboard.py CHANGED
@@ -14,7 +14,7 @@ with open("prompt/prompt.json", "r") as file:
14
 
15
  # Prepare leaderboard data
16
  winning_rate = [prompt['metric']['winning_number'] for prompt in prompts]
17
- winning_rate = [num / sum(winning_rate) for num in winning_rate]
18
  data = {
19
  'Rank': [i+1 for i in range(len(prompts))],
20
  'Methods': [create_html_with_tooltip(prompt['id'], prompt['url']) for prompt in prompts],
 
14
 
15
  # Prepare leaderboard data
16
  winning_rate = [prompt['metric']['winning_number'] for prompt in prompts]
17
+ winning_rate = [round(num / sum(winning_rate), 4)for num in winning_rate]
18
  data = {
19
  'Rank': [i+1 for i in range(len(prompts))],
20
  'Methods': [create_html_with_tooltip(prompt['id'], prompt['url']) for prompt in prompts],