Spaces:
Sleeping
Sleeping
cofig fix
Browse files
app.py
CHANGED
|
@@ -71,6 +71,8 @@ def load_competition_data(last_update_time=None):
|
|
| 71 |
def main():
|
| 72 |
st.markdown(HEADER, unsafe_allow_html=True)
|
| 73 |
|
|
|
|
|
|
|
| 74 |
if 'last_update_time' not in st.session_state:
|
| 75 |
st.session_state.last_update_time = None
|
| 76 |
if "leader_info" not in st.session_state:
|
|
@@ -81,7 +83,6 @@ def main():
|
|
| 81 |
if st.session_state.last_update_time is None or (time.time() - st.session_state.last_update_time > UPDATE_INTERVAL):
|
| 82 |
competition_summaries, model_evaluations, st.session_state.last_update_time = load_competition_data(st.session_state.last_update_time)
|
| 83 |
|
| 84 |
-
competitions_id = get_competition_id(CONFIG_URL)
|
| 85 |
for competition in COMPETITIONS:
|
| 86 |
if COMPETITIONS[competition]["project"] in competitions_id:
|
| 87 |
if not competition_summaries[competition].empty:
|
|
@@ -123,6 +124,9 @@ def main():
|
|
| 123 |
|
| 124 |
|
| 125 |
for index, (competition, details) in enumerate(COMPETITIONS.items(), start=1):
|
|
|
|
|
|
|
|
|
|
| 126 |
leader_info = st.session_state.get("leader_info", {}).get(competition, {})
|
| 127 |
|
| 128 |
cols = st.columns([1, 3, 2, 2, 3, 1])
|
|
|
|
| 71 |
def main():
|
| 72 |
st.markdown(HEADER, unsafe_allow_html=True)
|
| 73 |
|
| 74 |
+
competitions_id = get_competition_id(CONFIG_URL)
|
| 75 |
+
|
| 76 |
if 'last_update_time' not in st.session_state:
|
| 77 |
st.session_state.last_update_time = None
|
| 78 |
if "leader_info" not in st.session_state:
|
|
|
|
| 83 |
if st.session_state.last_update_time is None or (time.time() - st.session_state.last_update_time > UPDATE_INTERVAL):
|
| 84 |
competition_summaries, model_evaluations, st.session_state.last_update_time = load_competition_data(st.session_state.last_update_time)
|
| 85 |
|
|
|
|
| 86 |
for competition in COMPETITIONS:
|
| 87 |
if COMPETITIONS[competition]["project"] in competitions_id:
|
| 88 |
if not competition_summaries[competition].empty:
|
|
|
|
| 124 |
|
| 125 |
|
| 126 |
for index, (competition, details) in enumerate(COMPETITIONS.items(), start=1):
|
| 127 |
+
if COMPETITIONS[competition]["project"] not in competitions_id:
|
| 128 |
+
continue
|
| 129 |
+
|
| 130 |
leader_info = st.session_state.get("leader_info", {}).get(competition, {})
|
| 131 |
|
| 132 |
cols = st.columns([1, 3, 2, 2, 3, 1])
|