Update
Browse files
app.py
CHANGED
|
@@ -63,18 +63,18 @@ else:
|
|
| 63 |
{
|
| 64 |
"problem_id": [int(problem['problem_id']) for problem in ds],
|
| 65 |
"problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
|
| 66 |
-
"
|
| 67 |
}
|
| 68 |
)
|
| 69 |
st.dataframe(
|
| 70 |
df,
|
| 71 |
column_config={
|
| 72 |
"problem_id": st.column_config.NumberColumn("Problem ID"),
|
| 73 |
-
"
|
| 74 |
"problem_link": st.column_config.LinkColumn("Link", display_text="Open"),
|
| 75 |
},
|
| 76 |
height=800,
|
| 77 |
-
column_order=("problem_id", "
|
| 78 |
hide_index=True,
|
| 79 |
)
|
| 80 |
|
|
@@ -121,11 +121,11 @@ else:
|
|
| 121 |
column_config={
|
| 122 |
"model_name": st.column_config.TextColumn("Model Name"),
|
| 123 |
"dynamic_point": st.column_config.NumberColumn("Dynamic Point"),
|
| 124 |
-
"pass@1": st.column_config.NumberColumn("Pass@
|
| 125 |
"beyond@t": st.column_config.NumberColumn("Beyond@Time"),
|
| 126 |
"beyond@m": st.column_config.NumberColumn("Beyond@Memory"),
|
| 127 |
"model_progress": st.column_config.ProgressColumn("Progress", min_value=0, max_value=problem_count, format="compact"),
|
| 128 |
},
|
| 129 |
-
column_order=("model_name", "pass@1", "beyond@t", "beyond@m", "model_progress"),
|
| 130 |
height=800,
|
| 131 |
)
|
|
|
|
| 63 |
{
|
| 64 |
"problem_id": [int(problem['problem_id']) for problem in ds],
|
| 65 |
"problem_link": ["https://huggingface.co/spaces/Elfsong/CodeArena/?problem=" + str(problem['problem_id']) for problem in ds],
|
| 66 |
+
"acceptance_rate": [[random.randint(0, 100) for _ in range(20)] for problem in ds],
|
| 67 |
}
|
| 68 |
)
|
| 69 |
st.dataframe(
|
| 70 |
df,
|
| 71 |
column_config={
|
| 72 |
"problem_id": st.column_config.NumberColumn("Problem ID"),
|
| 73 |
+
"acceptance_rate": st.column_config.LineChartColumn("Acceptance Rate", y_min=0, y_max=100),
|
| 74 |
"problem_link": st.column_config.LinkColumn("Link", display_text="Open"),
|
| 75 |
},
|
| 76 |
height=800,
|
| 77 |
+
column_order=("problem_id", "acceptance_rate", "problem_link"),
|
| 78 |
hide_index=True,
|
| 79 |
)
|
| 80 |
|
|
|
|
| 121 |
column_config={
|
| 122 |
"model_name": st.column_config.TextColumn("Model Name"),
|
| 123 |
"dynamic_point": st.column_config.NumberColumn("Dynamic Point"),
|
| 124 |
+
"pass@1": st.column_config.NumberColumn("Pass@1"),
|
| 125 |
"beyond@t": st.column_config.NumberColumn("Beyond@Time"),
|
| 126 |
"beyond@m": st.column_config.NumberColumn("Beyond@Memory"),
|
| 127 |
"model_progress": st.column_config.ProgressColumn("Progress", min_value=0, max_value=problem_count, format="compact"),
|
| 128 |
},
|
| 129 |
+
column_order=("model_name", "Dynamic Point", "pass@1", "beyond@t", "beyond@m", "model_progress"),
|
| 130 |
height=800,
|
| 131 |
)
|