Add submission
Browse files
app.py
CHANGED
@@ -104,9 +104,27 @@ else:
|
|
104 |
with tab_submission:
|
105 |
st.header("Submissions")
|
106 |
models = get_dataset_config_names("Elfsong/Venus_Model_Evaluation")
|
107 |
-
option = st.selectbox("Which model you are looking for?", models,
|
108 |
st.write("You selected:", option)
|
109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
with tab_model:
|
112 |
model_list = [
|
|
|
104 |
with tab_submission:
|
105 |
st.header("Submissions")
|
106 |
models = get_dataset_config_names("Elfsong/Venus_Model_Evaluation")
|
107 |
+
option = st.selectbox("Which model you are looking for?", models, placeholder="Select a model...")
|
108 |
st.write("You selected:", option)
|
109 |
|
110 |
+
with st.spinner("Loading Data...", show_time=True):
|
111 |
+
df = pd.DataFrame(
|
112 |
+
{
|
113 |
+
"problem_id": [int(problem['problem_id']) for problem in problem_dict.values()],
|
114 |
+
"solution": [str(problem['solution']) for problem in problem_dict.values()],
|
115 |
+
}
|
116 |
+
)
|
117 |
+
st.dataframe(
|
118 |
+
df,
|
119 |
+
column_config={
|
120 |
+
"problem_id": st.column_config.NumberColumn("Problem ID", width='small'),
|
121 |
+
"solution": st.column_config.TextColumn("Solution", width='big'),
|
122 |
+
},
|
123 |
+
height=800,
|
124 |
+
column_order=("problem_id", "solution"),
|
125 |
+
hide_index=True,
|
126 |
+
)
|
127 |
+
|
128 |
|
129 |
with tab_model:
|
130 |
model_list = [
|