Spaces:
Runtime error
Runtime error
The file name must not contain a slash
Browse files
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 |
}
|