idolezal commited on
Commit
6586c80
1 Parent(s): 3eee636

The file name must not contain a slash

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -227,7 +227,7 @@ class LeaderboardServer:
227
  submission_id: {
228
  category: self._dataframe_to_csv(
229
  self._get_model_tournament_table(submission_id, category, to_csv=True),
230
- f"Tournament table - {self.submission_id_to_data[submission_id]['metadata']['model_name'][:self.MAX_LENGTH_OF_MODEL_TITLE]} - {category}.csv",
231
  )
232
  for category in sorted(self.TASKS_CATEGORIES)
233
  }
 
227
  submission_id: {
228
  category: self._dataframe_to_csv(
229
  self._get_model_tournament_table(submission_id, category, to_csv=True),
230
+ f"Tournament table - {self.submission_id_to_data[submission_id]['metadata']['model_name'][:self.MAX_LENGTH_OF_MODEL_TITLE].replace('/', '_')} - {category}.csv",
231
  )
232
  for category in sorted(self.TASKS_CATEGORIES)
233
  }