Spaces:
Runtime error
Runtime error
Try remove Styler
Browse files
app.py
CHANGED
@@ -625,7 +625,7 @@ def gradio_app():
|
|
625 |
)
|
626 |
|
627 |
leaderboard_dataframe = leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL)
|
628 |
-
leaderboard_datatype = ["markdown" if idx < 3 else "number" for idx, col in enumerate(leaderboard_dataframe
|
629 |
|
630 |
# leaderboard_dataframe_number_cols = [col for idx, col in enumerate(leaderboard_dataframe) if idx > 2 and col != "model_title"]
|
631 |
|
|
|
625 |
)
|
626 |
|
627 |
leaderboard_dataframe = leaderboard_server.get_leaderboard(category=leaderboard_server.TASKS_CATEGORY_OVERALL)
|
628 |
+
leaderboard_datatype = ["markdown" if idx < 3 else "number" for idx, col in enumerate(leaderboard_dataframe)]
|
629 |
|
630 |
# leaderboard_dataframe_number_cols = [col for idx, col in enumerate(leaderboard_dataframe) if idx > 2 and col != "model_title"]
|
631 |
|
server.py
CHANGED
@@ -748,8 +748,8 @@ class LeaderboardServer:
|
|
748 |
|
749 |
if not to_csv:
|
750 |
dataframe = dataframe.sort_values(by=["model_title"], ascending=True)
|
751 |
-
|
752 |
-
dataframe = dataframe.style.format(precision=2, thousands=".", decimal=",")
|
753 |
return dataframe
|
754 |
|
755 |
def start_tournament(self, new_submission_id, new_model_file):
|
|
|
748 |
|
749 |
if not to_csv:
|
750 |
dataframe = dataframe.sort_values(by=["model_title"], ascending=True)
|
751 |
+
dataframe = dataframe.round(decimals=2)
|
752 |
+
#dataframe = dataframe.style.format(precision=2, thousands=".", decimal=",")
|
753 |
return dataframe
|
754 |
|
755 |
def start_tournament(self, new_submission_id, new_model_file):
|