ZhangYuhan commited on
Commit
00deffa
1 Parent(s): d75a844

update leaderboard

Browse files
Files changed (1) hide show
  1. serve/leaderboard.py +3 -4
serve/leaderboard.py CHANGED
@@ -208,14 +208,14 @@ def make_arena_leaderboard_md(elo_results):
208
  for dim in elo_results.keys():
209
  arena_df = elo_results[dim]["leaderboard_table_df"]
210
  last_updated = elo_results[dim]["last_updated_datetime"]
211
- total_votes += sum(arena_df["num_battles"]) // 2
212
  total_models = len(arena_df)
213
 
214
  leaderboard_md = f"""
215
 
216
 
217
- Total #models: **{total_models}**(anonymous). Total #votes: **{total_votes}**. Last updated: {last_updated}.
218
- (Note: Only anonymous votes are considered here. Check the full leaderboard for all votes.)
219
 
220
  Contribute the votes 🗳️ at [3DGen-Arena](https://huggingface.co/spaces/ZhangYuhan/3DGen-Arena)!
221
 
@@ -231,7 +231,6 @@ def make_full_leaderboard_md(elo_results):
231
  leaderboard_md = f"""
232
  Total #models: **{total_models}**(full:anonymous+open). Total #votes: **{total_votes}**. Last updated: {last_updated}.
233
 
234
- Contribute your vote 🗳️ at [vision-arena](https://huggingface.co/spaces/WildVision/vision-arena)!
235
  """
236
  return leaderboard_md
237
 
 
208
  for dim in elo_results.keys():
209
  arena_df = elo_results[dim]["leaderboard_table_df"]
210
  last_updated = elo_results[dim]["last_updated_datetime"]
211
+ total_votes += sum(arena_df["num_battles"].fillna(0)) // 2
212
  total_models = len(arena_df)
213
 
214
  leaderboard_md = f"""
215
 
216
 
217
+ Total #models: **{total_models}**(anonymous). Total #votes: **{int(total_votes)}**. Last updated: {last_updated}. \n
218
+ (Note: Only anonymous votes are considered here.)
219
 
220
  Contribute the votes 🗳️ at [3DGen-Arena](https://huggingface.co/spaces/ZhangYuhan/3DGen-Arena)!
221
 
 
231
  leaderboard_md = f"""
232
  Total #models: **{total_models}**(full:anonymous+open). Total #votes: **{total_votes}**. Last updated: {last_updated}.
233
 
 
234
  """
235
  return leaderboard_md
236