sh1gechan commited on
Commit
ec9d149
1 Parent(s): 8604d8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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 = {col: TYPES.get(col, "str") for col in leaderboard_df_filtered.columns}
282
- datatype_dict["Model"] = "markdown" # Modelカラムのみmarkdownとして扱う
 
 
 
 
 
 
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(