idolezal commited on
Commit
d636f3d
1 Parent(s): 8e9c817

Fix progress info

Browse files
Files changed (1) hide show
  1. server.py +2 -1
server.py CHANGED
@@ -309,7 +309,8 @@ class LeaderboardServer:
309
  task: data["significant"] for task, data in result_inverse.items()
310
  }
311
 
312
- gr.Info(f"Tournament: {(num_of_competitors - len(rest_of_competitors)) * 100 // num_of_competitors}% is done")
 
313
 
314
  return new_tournament
315
 
 
309
  task: data["significant"] for task, data in result_inverse.items()
310
  }
311
 
312
+ num_of_competitors_done = num_of_competitors - len(next_competitors) - len(rest_of_competitors)
313
+ gr.Info(f"Tournament: {num_of_competitors_done}/{num_of_competitors} = {(num_of_competitors_done) * 100 // num_of_competitors}% is done")
314
 
315
  return new_tournament
316