update
Browse files
app.py
CHANGED
@@ -20,7 +20,6 @@ with st.spinner("Loading data...", show_time=True):
|
|
20 |
problem_id = problem["title"]
|
21 |
problem['type'] = "leetcode"
|
22 |
problem_dict[problem_id] = problem
|
23 |
-
|
24 |
|
25 |
problem_count = len(problem_dict)
|
26 |
|
@@ -63,11 +62,11 @@ else:
|
|
63 |
with st.spinner("Loading Framework...", show_time=True):
|
64 |
df = pd.DataFrame(
|
65 |
{
|
66 |
-
"problem_id": [int(problem['problem_id']) for problem in
|
67 |
-
"difficulty": [str(problem['difficulty']) for problem in
|
68 |
-
"type": [str(problem['type']) for problem in
|
69 |
-
"problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in
|
70 |
-
"acceptance_rate": [[random.randint(0, 100) for _ in range(20)] for problem in
|
71 |
}
|
72 |
)
|
73 |
st.dataframe(
|
|
|
20 |
problem_id = problem["title"]
|
21 |
problem['type'] = "leetcode"
|
22 |
problem_dict[problem_id] = problem
|
|
|
23 |
|
24 |
problem_count = len(problem_dict)
|
25 |
|
|
|
62 |
with st.spinner("Loading Framework...", show_time=True):
|
63 |
df = pd.DataFrame(
|
64 |
{
|
65 |
+
"problem_id": [int(problem['problem_id']) for problem in problem_dict.values()],
|
66 |
+
"difficulty": [str(problem['difficulty']) for problem in problem_dict.values()],
|
67 |
+
"type": [str(problem['type']) for problem in problem_dict.values()],
|
68 |
+
"problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in problem_dict.values()],
|
69 |
+
"acceptance_rate": [[random.randint(0, 100) for _ in range(20)] for problem in problem_dict.values()],
|
70 |
}
|
71 |
)
|
72 |
st.dataframe(
|