陈俊杰
commited on
Commit
•
6a26f80
1
Parent(s):
6280ba1
sideBar
Browse files- app.py +17 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
import pandas as pd
|
3 |
|
4 |
# CSS样式
|
@@ -103,7 +104,22 @@ st.title("NTCIR-18 Automatic Evaluation of LLMs (AEOLLM) Task")
|
|
103 |
|
104 |
# 在侧边栏创建导航菜单
|
105 |
st.sidebar.title("Navigation")
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
|
108 |
# 根据选择的页面展示不同的内容
|
109 |
if page == "Introduction":
|
|
|
1 |
import streamlit as st
|
2 |
+
from streamlit_option_menu import option_menu
|
3 |
import pandas as pd
|
4 |
|
5 |
# CSS样式
|
|
|
104 |
|
105 |
# 在侧边栏创建导航菜单
|
106 |
st.sidebar.title("Navigation")
|
107 |
+
with st.sidebar:
|
108 |
+
page = option_menu(
|
109 |
+
"Navigation",
|
110 |
+
["Introduction", "Methodology", "Datasets", "Important Dates",
|
111 |
+
"Evaluation Measures", "Data and File format", "Submit",
|
112 |
+
"LeaderBoard", "Organisers", "References"],
|
113 |
+
icons=['house', 'book', 'database', 'calendar', 'clipboard', 'file', 'upload', 'trophy', 'people', 'book'],
|
114 |
+
menu_icon="cast",
|
115 |
+
default_index=0,
|
116 |
+
styles={
|
117 |
+
"container": {"padding": "5px", "background-color": "#2E3B4E"},
|
118 |
+
"icon": {"color": "orange", "font-size": "18px"},
|
119 |
+
"nav-link": {"font-size": "16px", "text-align": "left", "margin":"0px", "--hover-color": "#6c757d"},
|
120 |
+
"nav-link-selected": {"background-color": "#FF6347"},
|
121 |
+
}
|
122 |
+
)
|
123 |
|
124 |
# 根据选择的页面展示不同的内容
|
125 |
if page == "Introduction":
|
requirements.txt
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
pandas==2.2.2
|
2 |
streamlit==1.34.0
|
|
|
|
1 |
pandas==2.2.2
|
2 |
streamlit==1.34.0
|
3 |
+
streamlit_option_menu==0.3.13
|