Elfsong commited on
Commit
768078e
·
1 Parent(s): 4f38346
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -19,14 +19,12 @@ if "problem" in st.query_params:
19
  st.write(problem_dict[problem_id])
20
 
21
  else:
22
- with st.spinner("Loading data...", show_time=True):
23
- ds = load_dataset("Elfsong/leetcode_data", split='train')
24
- df = pd.DataFrame(
25
- {
26
- "problem_id": ["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:
 
19
  st.write(problem_dict[problem_id])
20
 
21
  else:
22
+ df = pd.DataFrame(
23
+ {
24
+ "problem_id": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
25
+ "dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
26
+ }
27
+ )
 
 
28
 
29
  tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
30
  with tab_problem: