陈俊杰
commited on
Commit
•
8febd7d
1
Parent(s):
a266103
cjj:dele
Browse files
app.py
CHANGED
@@ -63,34 +63,34 @@ Details of AEOLLLM can be found at the link: [https://cjj826.github.io/AEOLLM/](
|
|
63 |
Submit your result here (.json):
|
64 |
""", unsafe_allow_html=True)
|
65 |
|
66 |
-
user_id = get_user_id()
|
67 |
-
st.write(f"欢迎, {user_id}!")
|
68 |
|
69 |
-
# 检查用户的提交限制
|
70 |
-
if check_submission_limit(user_id):
|
71 |
-
|
72 |
|
73 |
-
|
74 |
-
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
|
92 |
-
else:
|
93 |
-
|
94 |
|
95 |
# 创建示例数据
|
96 |
SG = {
|
|
|
63 |
Submit your result here (.json):
|
64 |
""", unsafe_allow_html=True)
|
65 |
|
66 |
+
# user_id = get_user_id()
|
67 |
+
# st.write(f"欢迎, {user_id}!")
|
68 |
|
69 |
+
# # 检查用户的提交限制
|
70 |
+
# if check_submission_limit(user_id):
|
71 |
+
# st.write(f"您今天还可以提交 {MAX_SUBMISSIONS_PER_DAY - submissions_log[user_id]['count']} 次。")
|
72 |
|
73 |
+
# # 创建文件上传组件
|
74 |
+
# uploaded_file = st.file_uploader("选择一个文件", type=["json"])
|
75 |
|
76 |
+
# # 创建一个按钮,用户点击后提交文件
|
77 |
+
# if st.button("提交文件"):
|
78 |
+
# if uploaded_file is not None:
|
79 |
+
# # 读取文件内容
|
80 |
+
# file_content = uploaded_file.read().decode("utf-8")
|
81 |
|
82 |
+
# # 如果是JSON文件,解析内容
|
83 |
+
# try:
|
84 |
+
# json_data = json.loads(file_content)
|
85 |
+
# st.success("文件已成功提交!")
|
86 |
+
# st.json(json_data) # 显示上传的JSON数据
|
87 |
+
# except json.JSONDecodeError:
|
88 |
+
# st.error("无法解析JSON文件,请确保文件格式正确。")
|
89 |
+
# else:
|
90 |
+
# st.warning("请先上传一个文件!")
|
91 |
|
92 |
+
# else:
|
93 |
+
# st.error("您今天的提交次数已达上限。请明天再试。")
|
94 |
|
95 |
# 创建示例数据
|
96 |
SG = {
|