Update
Browse files
app.py
CHANGED
|
@@ -18,14 +18,14 @@ else:
|
|
| 18 |
with tab_problem:
|
| 19 |
df = pd.DataFrame(
|
| 20 |
{
|
| 21 |
-
"problem_id": [f"/?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={
|
| 28 |
-
"url": st.column_config.LinkColumn("Problem"
|
| 29 |
"dynamic_point": st.column_config.LineChartColumn("Dynamic Point", y_min=0, y_max=5000),
|
| 30 |
},
|
| 31 |
hide_index=True,
|
|
|
|
| 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={
|
| 28 |
+
"url": st.column_config.LinkColumn("Problem"),
|
| 29 |
"dynamic_point": st.column_config.LineChartColumn("Dynamic Point", y_min=0, y_max=5000),
|
| 30 |
},
|
| 31 |
hide_index=True,
|