chenjj826 commited on
Commit
20d36b2
1 Parent(s): 4ef8e34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -401,19 +401,19 @@ elif page == "LeaderBoard":
401
 
402
  🕒 The Leaderboard will be updated daily around 24:00 Beijing Time.
403
  """)
404
- # 获取北京时间
405
- time_placeholder = st.empty()
406
- beijing_tz = pytz.timezone('Asia/Shanghai')
407
- beijing_time = datetime.now(beijing_tz)
408
- while True:
409
- # 获取当前的北京时间
410
- beijing_time = datetime.now(beijing_tz)
411
 
412
- # 在页面上动态显示当前北京时间
413
- time_placeholder.write("Current Beijing Time: " + beijing_time.strftime('%Y-%m-%d %H:%M:%S'))
414
 
415
- # 设置更新频率为每秒钟一次
416
- time.sleep(1)
417
 
418
  elif page == "Organisers":
419
  st.header("Organisers")
 
401
 
402
  🕒 The Leaderboard will be updated daily around 24:00 Beijing Time.
403
  """)
404
+ # # 获取北京时间
405
+ # time_placeholder = st.empty()
406
+ # beijing_tz = pytz.timezone('Asia/Shanghai')
407
+ # beijing_time = datetime.now(beijing_tz)
408
+ # while True:
409
+ # # 获取当前的北京时间
410
+ # beijing_time = datetime.now(beijing_tz)
411
 
412
+ # # 在页面上动态显示当前北京时间
413
+ # time_placeholder.write("Current Beijing Time: " + beijing_time.strftime('%Y-%m-%d %H:%M:%S'))
414
 
415
+ # # 设置更新频率为每秒钟一次
416
+ # time.sleep(1)
417
 
418
  elif page == "Organisers":
419
  st.header("Organisers")