陈俊杰
commited on
Commit
•
c58f8c1
1
Parent(s):
1aaa274
fini
Browse files
app.py
CHANGED
@@ -4,30 +4,15 @@ import pandas as pd
|
|
4 |
# CSS样式
|
5 |
st.markdown("""
|
6 |
<style>
|
7 |
-
html, body, [class*="css"] {
|
8 |
-
font-size: 24px; /* 增大基本字体大小 */
|
9 |
-
}
|
10 |
h1 {
|
11 |
font-size: 2.5em; /* 标题字体大小 */
|
12 |
}
|
13 |
-
/* 调整全局容器宽度为屏幕的 90%,自适应屏幕 */
|
14 |
-
.css-1d391kg {
|
15 |
-
padding: 1rem 1rem; /* 调整内边距 */
|
16 |
-
}
|
17 |
-
/* 设置主体内容最大宽度为100%,自适应屏幕 */
|
18 |
-
.css-1lcbmhc {
|
19 |
-
max-width: 100%;
|
20 |
-
}
|
21 |
.stDataFrame {
|
22 |
font-family: Helvetica;
|
23 |
-
font-size: 24px;
|
24 |
-
width: 100%;
|
25 |
-
min-width: 100%;
|
26 |
}
|
27 |
.dataframe th, .dataframe td {
|
28 |
-
width: auto
|
29 |
-
min-width:
|
30 |
-
max-width: 300px; /* 防止单列过宽 */
|
31 |
}
|
32 |
</style>
|
33 |
""", unsafe_allow_html=True)
|
@@ -42,6 +27,8 @@ This leaderboard is used to show the performance of the **automation evaluation
|
|
42 |
- Non-Factoid QA (NFQA)
|
43 |
- Dialogue Generation (DG)
|
44 |
- Text Expansion (TE).
|
|
|
|
|
45 |
""", unsafe_allow_html=True)
|
46 |
# 创建示例数据
|
47 |
SG = {
|
@@ -49,7 +36,7 @@ SG = {
|
|
49 |
"team": ["U1", "U2", "U3"],
|
50 |
"acc": [0.75, 0.64, 0.83],
|
51 |
"tau": [0.05, 0.28, 0.16],
|
52 |
-
"s": [0.12, 0.27, 0.18]
|
53 |
}
|
54 |
df1 = pd.DataFrame(SG)
|
55 |
|
@@ -86,19 +73,19 @@ tab1, tab2, tab3, tab4 = st.tabs(["SG", "NFQA", "DG", "TE"])
|
|
86 |
# 在标签页 1 中添加内容
|
87 |
with tab1:
|
88 |
st.header("Summary Generation")
|
89 |
-
st.dataframe(df1)
|
90 |
|
91 |
# 在标签页 2 中添加内容
|
92 |
with tab2:
|
93 |
st.header("Non-Factoid QA")
|
94 |
-
st.dataframe(df2)
|
95 |
|
96 |
# 在标签页 3 中添加内容
|
97 |
with tab3:
|
98 |
st.header("Dialogue Generation")
|
99 |
-
st.dataframe(df3)
|
100 |
|
101 |
# 在标签页 4 中添加内容
|
102 |
with tab4:
|
103 |
st.header("Text Expansion")
|
104 |
-
st.dataframe(df4)
|
|
|
4 |
# CSS样式
|
5 |
st.markdown("""
|
6 |
<style>
|
|
|
|
|
|
|
7 |
h1 {
|
8 |
font-size: 2.5em; /* 标题字体大小 */
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
.stDataFrame {
|
11 |
font-family: Helvetica;
|
|
|
|
|
|
|
12 |
}
|
13 |
.dataframe th, .dataframe td {
|
14 |
+
width: auto;
|
15 |
+
min-width: 500px;
|
|
|
16 |
}
|
17 |
</style>
|
18 |
""", unsafe_allow_html=True)
|
|
|
27 |
- Non-Factoid QA (NFQA)
|
28 |
- Dialogue Generation (DG)
|
29 |
- Text Expansion (TE).
|
30 |
+
|
31 |
+
Details of AEOLLLM can be found at the link: [https://cjj826.github.io/AEOLLM/](https://cjj826.github.io/AEOLLM/)
|
32 |
""", unsafe_allow_html=True)
|
33 |
# 创建示例数据
|
34 |
SG = {
|
|
|
36 |
"team": ["U1", "U2", "U3"],
|
37 |
"acc": [0.75, 0.64, 0.83],
|
38 |
"tau": [0.05, 0.28, 0.16],
|
39 |
+
"s": [0.12, 0.27, 0.18],
|
40 |
}
|
41 |
df1 = pd.DataFrame(SG)
|
42 |
|
|
|
73 |
# 在标签页 1 中添加内容
|
74 |
with tab1:
|
75 |
st.header("Summary Generation")
|
76 |
+
st.dataframe(df1, use_container_width=True)
|
77 |
|
78 |
# 在标签页 2 中添加内容
|
79 |
with tab2:
|
80 |
st.header("Non-Factoid QA")
|
81 |
+
st.dataframe(df2, use_container_width=True)
|
82 |
|
83 |
# 在标签页 3 中添加内容
|
84 |
with tab3:
|
85 |
st.header("Dialogue Generation")
|
86 |
+
st.dataframe(df3, use_container_width=True)
|
87 |
|
88 |
# 在标签页 4 中添加内容
|
89 |
with tab4:
|
90 |
st.header("Text Expansion")
|
91 |
+
st.dataframe(df4, use_container_width=True, )
|