Update
Browse files
app.py
CHANGED
@@ -47,18 +47,17 @@ if "problem" in st.query_params:
|
|
47 |
)
|
48 |
|
49 |
else:
|
50 |
-
with st.spinner("Loading Framework...", show_time=True):
|
51 |
-
df = pd.DataFrame(
|
52 |
-
{
|
53 |
-
"problem_id": [int(problem['problem_id']) for problem in ds],
|
54 |
-
"problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
|
55 |
-
"dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
|
56 |
-
}
|
57 |
-
)
|
58 |
-
|
59 |
tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
|
60 |
|
61 |
with tab_problem:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
st.dataframe(
|
63 |
df,
|
64 |
column_config={
|
@@ -74,4 +73,19 @@ else:
|
|
74 |
st.header("Submissions")
|
75 |
|
76 |
with tab_model:
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
)
|
48 |
|
49 |
else:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
tab_problem, tab_submission, tab_model = st.tabs(["Problems", "Submissions", "Models"])
|
51 |
|
52 |
with tab_problem:
|
53 |
+
with st.spinner("Loading Framework...", show_time=True):
|
54 |
+
df = pd.DataFrame(
|
55 |
+
{
|
56 |
+
"problem_id": [int(problem['problem_id']) for problem in ds],
|
57 |
+
"problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
|
58 |
+
"dynamic_point": [[random.randint(0, 5000) for _ in range(30)] for problem in ds],
|
59 |
+
}
|
60 |
+
)
|
61 |
st.dataframe(
|
62 |
df,
|
63 |
column_config={
|
|
|
73 |
st.header("Submissions")
|
74 |
|
75 |
with tab_model:
|
76 |
+
model_list = ['llama-3.3', 'qwen-2.5', "openai-GPT4o"]
|
77 |
+
|
78 |
+
df = pd.DataFrame(
|
79 |
+
{
|
80 |
+
"model_name": [model_name for model_name in model_list],
|
81 |
+
}
|
82 |
+
)
|
83 |
+
|
84 |
+
st.dataframe(
|
85 |
+
df,
|
86 |
+
column_config={
|
87 |
+
"model_name": st.column_config.TextColumn("Problem ID"),
|
88 |
+
},
|
89 |
+
column_order=("model_name",),
|
90 |
+
hide_index=True,
|
91 |
+
)
|