Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -278,8 +278,14 @@ with demo:
|
|
278 |
print("Columns in leaderboard_df_filtered:", leaderboard_df_filtered.columns)
|
279 |
|
280 |
# datatypeを準備
|
281 |
-
datatype_dict = {
|
282 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
283 |
|
284 |
# leaderboard_tableの初期化
|
285 |
leaderboard_table = gr.components.Dataframe(
|
|
|
278 |
print("Columns in leaderboard_df_filtered:", leaderboard_df_filtered.columns)
|
279 |
|
280 |
# datatypeを準備
|
281 |
+
datatype_dict = {}
|
282 |
+
for col in leaderboard_df_filtered.columns:
|
283 |
+
if col == "Model":
|
284 |
+
datatype_dict[col] = "markdown"
|
285 |
+
elif col in TYPES:
|
286 |
+
datatype_dict[col] = TYPES[col]
|
287 |
+
else:
|
288 |
+
datatype_dict[col] = "str"
|
289 |
|
290 |
# leaderboard_tableの初期化
|
291 |
leaderboard_table = gr.components.Dataframe(
|