Elfsong commited on
Commit
f5e6a19
·
1 Parent(s): 8a8a0dd
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -12,16 +12,16 @@ if "problem" in st.query_params:
12
  else:
13
  with st.spinner("Loading data...", show_time=True):
14
  ds = load_dataset("Elfsong/leetcode_data", split='train')
15
-
16
- tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
17
-
18
- with tab_problem:
19
  df = pd.DataFrame(
20
  {
21
  "problem_id": [f"https://huggingface.co/spaces/Elfsong/CodeArena/?problem={problem['problem_id']}" for problem in ds],
22
  "dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
23
  }
24
  )
 
 
 
 
25
  st.dataframe(
26
  df,
27
  column_config={
 
12
  else:
13
  with st.spinner("Loading data...", show_time=True):
14
  ds = load_dataset("Elfsong/leetcode_data", split='train')
 
 
 
 
15
  df = pd.DataFrame(
16
  {
17
  "problem_id": [f"https://huggingface.co/spaces/Elfsong/CodeArena/?problem={problem['problem_id']}" for problem in ds],
18
  "dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
19
  }
20
  )
21
+
22
+ tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
23
+ with tab_problem:
24
+
25
  st.dataframe(
26
  df,
27
  column_config={