陈俊杰 commited on
Commit
17de0ef
·
1 Parent(s): 167bc7e
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -291,15 +291,15 @@ This leaderboard is used to show the performance of the <strong>automatic evalua
291
  for j in range(len(metric)): # 每种指标
292
  index = f"{metric[j]} ({task[i]})"
293
  df[index] = d[metric[j]]
294
- for k in range(len[df["TeamId"]]):
295
  total[k] += d[metric[j]][k]
296
  average_index = f"Average ({task[i]})"
297
  df[average_index] = [k / len(metric) for k in total]
298
- for k in range(len[df["TeamId"]]):
299
  overall_total[k] += df[average_index][k]
300
 
301
  df["Average (all 4 datatsets)"] = [k / len(task) for k in overall_total]
302
-
303
  st.dataframe(pd.DataFrame(df), use_container_width=True)
304
  st.markdown("A baseline example can be found in the [baseline_example](https://huggingface.co/spaces/THUIR/AEOLLM/tree/main/baseline_example) folder.")
305
  # 获取北京时间
 
291
  for j in range(len(metric)): # 每种指标
292
  index = f"{metric[j]} ({task[i]})"
293
  df[index] = d[metric[j]]
294
+ for k in range(len(df["TeamId"])):
295
  total[k] += d[metric[j]][k]
296
  average_index = f"Average ({task[i]})"
297
  df[average_index] = [k / len(metric) for k in total]
298
+ for k in range(len(df["TeamId"])):
299
  overall_total[k] += df[average_index][k]
300
 
301
  df["Average (all 4 datatsets)"] = [k / len(task) for k in overall_total]
302
+
303
  st.dataframe(pd.DataFrame(df), use_container_width=True)
304
  st.markdown("A baseline example can be found in the [baseline_example](https://huggingface.co/spaces/THUIR/AEOLLM/tree/main/baseline_example) folder.")
305
  # 获取北京时间