Elfsong commited on
Commit
d80e0ae
·
1 Parent(s): 04484c3
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -19,13 +19,14 @@ if "problem" in st.query_params:
19
  st.write(problem_dict[problem_id])
20
 
21
  else:
22
- df = pd.DataFrame(
23
- {
24
- "problem_id": [problem['problem_id'] for problem in ds],
25
- "problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
26
- "dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
27
- }
28
- )
 
29
 
30
  tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
31
  with tab_problem:
 
19
  st.write(problem_dict[problem_id])
20
 
21
  else:
22
+ with st.spinner("Loading Framework...", show_time=True):
23
+ df = pd.DataFrame(
24
+ {
25
+ "problem_id": [problem['problem_id'] for problem in ds],
26
+ "problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
27
+ "dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
28
+ }
29
+ )
30
 
31
  tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
32
  with tab_problem: