idolezal commited on
Commit
912aca1
β€’
1 Parent(s): 23adf76
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -96,12 +96,12 @@ class LeaderboardServer:
96
  else:
97
  processed_results.append(local_results)
98
  dataframe = pd.DataFrame.from_records(processed_results)
 
99
  df_order = (["submission_id"] + list(self.tasks_metadata.keys()) +
100
  [col for col in dataframe.columns if
101
  col != "submission_id" and col not in self.tasks_metadata.keys()])
102
  dataframe = dataframe[df_order]
103
  dataframe = dataframe.rename(columns={key: value["name"] for key, value in self.tasks_metadata.items()})
104
- dataframe = dataframe.style.format("{:.1f}")
105
  return dataframe
106
 
107
  def start_tournament(self, new_model_id, new_model_file):
 
96
  else:
97
  processed_results.append(local_results)
98
  dataframe = pd.DataFrame.from_records(processed_results)
99
+ dataframe = dataframe.style.format("{:.1f}")
100
  df_order = (["submission_id"] + list(self.tasks_metadata.keys()) +
101
  [col for col in dataframe.columns if
102
  col != "submission_id" and col not in self.tasks_metadata.keys()])
103
  dataframe = dataframe[df_order]
104
  dataframe = dataframe.rename(columns={key: value["name"] for key, value in self.tasks_metadata.items()})
 
105
  return dataframe
106
 
107
  def start_tournament(self, new_model_id, new_model_file):