Update
Browse files
app.py
CHANGED
@@ -19,13 +19,14 @@ if "problem" in st.query_params:
|
|
19 |
st.write(problem_dict[problem_id])
|
20 |
|
21 |
else:
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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:
|