陈俊杰 commited on
Commit
ca9cb99
·
1 Parent(s): 17de0ef
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -299,8 +299,9 @@ This leaderboard is used to show the performance of the <strong>automatic evalua
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
  # 获取北京时间
306
  time_placeholder = st.empty()
 
299
  overall_total[k] += df[average_index][k]
300
 
301
  df["Average (all 4 datatsets)"] = [k / len(task) for k in overall_total]
302
+ for col in df.select_dtypes(include=['float64', 'int64']).columns:
303
+ df[col] = df[col].apply(lambda x: f"{x:.4f}")
304
+ st.dataframe(pd.DataFrame(df))
305
  st.markdown("A baseline example can be found in the [baseline_example](https://huggingface.co/spaces/THUIR/AEOLLM/tree/main/baseline_example) folder.")
306
  # 获取北京时间
307
  time_placeholder = st.empty()