陈俊杰 commited on
Commit
335ee08
1 Parent(s): 5c4f7bb
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -28,6 +28,12 @@ with st.sidebar:
28
 
29
  st.markdown("""
30
  <style>
 
 
 
 
 
 
31
  /* 应用到所有的Markdown渲染文本 */
32
  div[data-testid="stMarkdownContainer"] p,
33
  div[data-testid="stMarkdownContainer"] table,
@@ -303,7 +309,7 @@ This leaderboard is used to show the performance of the <strong>automatic evalua
303
  df = pd.DataFrame(df)
304
  for col in df.select_dtypes(include=['float64', 'int64']).columns:
305
  df[col] = df[col].apply(lambda x: f"{x:.4f}")
306
- st.dataframe(df,width=1000)
307
 
308
  st.markdown("A baseline example can be found in the [baseline_example](https://huggingface.co/spaces/THUIR/AEOLLM/tree/main/baseline_example) folder.")
309
  # 获取北京时间
 
28
 
29
  st.markdown("""
30
  <style>
31
+ .dataframe th {
32
+ max-width: 100px;
33
+ }
34
+ .dataframe td {
35
+ max-width: 100px;
36
+ }
37
  /* 应用到所有的Markdown渲染文本 */
38
  div[data-testid="stMarkdownContainer"] p,
39
  div[data-testid="stMarkdownContainer"] table,
 
309
  df = pd.DataFrame(df)
310
  for col in df.select_dtypes(include=['float64', 'int64']).columns:
311
  df[col] = df[col].apply(lambda x: f"{x:.4f}")
312
+ st.dataframe(df,use_container_width=True)
313
 
314
  st.markdown("A baseline example can be found in the [baseline_example](https://huggingface.co/spaces/THUIR/AEOLLM/tree/main/baseline_example) folder.")
315
  # 获取北京时间