weichiang commited on
Commit
6ed21d5
β€’
1 Parent(s): 561d82a
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -187,7 +187,7 @@ def get_full_table(arena_df, model_table_df):
187
  row.append(model_name)
188
  if model_key in arena_df.index:
189
  idx = arena_df.index.get_loc(model_key)
190
- row.append(round(arena_df.iloc[idx]["rating"], 1))
191
  else:
192
  row.append(np.nan)
193
  row.append(model_table_df.iloc[i]["MT-bench (score)"])
@@ -218,12 +218,12 @@ def get_arena_table(arena_df, model_table_df):
218
  # model display name
219
  row.append(model_name)
220
  # elo rating
221
- row.append(round(arena_df.iloc[i]["rating"], 1))
222
  upper_diff = round(
223
- arena_df.iloc[i]["rating_q975"] - arena_df.iloc[i]["rating"], 1
224
  )
225
  lower_diff = round(
226
- arena_df.iloc[i]["rating"] - arena_df.iloc[i]["rating_q025"], 1
227
  )
228
  row.append(f"+{upper_diff}/-{lower_diff}")
229
  # num battles
 
187
  row.append(model_name)
188
  if model_key in arena_df.index:
189
  idx = arena_df.index.get_loc(model_key)
190
+ row.append(round(arena_df.iloc[idx]["rating"]))
191
  else:
192
  row.append(np.nan)
193
  row.append(model_table_df.iloc[i]["MT-bench (score)"])
 
218
  # model display name
219
  row.append(model_name)
220
  # elo rating
221
+ row.append(round(arena_df.iloc[i]["rating"]))
222
  upper_diff = round(
223
+ arena_df.iloc[i]["rating_q975"] - arena_df.iloc[i]["rating"]
224
  )
225
  lower_diff = round(
226
+ arena_df.iloc[i]["rating"] - arena_df.iloc[i]["rating_q025"]
227
  )
228
  row.append(f"+{upper_diff}/-{lower_diff}")
229
  # num battles