Spaces:
Running
Running
Update model_comparison.py
Browse files- model_comparison.py +2 -2
model_comparison.py
CHANGED
@@ -53,11 +53,11 @@ TASK_EVAL_DATABASE_PATH = 'data/task_oriented_eval_database.yaml'
|
|
53 |
|
54 |
def dataframe_with_selections(df):
|
55 |
# df_with_selections = check_profanity(df.copy())
|
56 |
-
|
57 |
|
58 |
# Get dataframe row-selections from user with st.data_editor
|
59 |
edited_df = st.data_editor(
|
60 |
-
|
61 |
hide_index=True,
|
62 |
column_config={"Select": st.column_config.CheckboxColumn(required=True)},
|
63 |
disabled=df.columns,
|
|
|
53 |
|
54 |
def dataframe_with_selections(df):
|
55 |
# df_with_selections = check_profanity(df.copy())
|
56 |
+
df.insert(0, "Select", True)
|
57 |
|
58 |
# Get dataframe row-selections from user with st.data_editor
|
59 |
edited_df = st.data_editor(
|
60 |
+
df,
|
61 |
hide_index=True,
|
62 |
column_config={"Select": st.column_config.CheckboxColumn(required=True)},
|
63 |
disabled=df.columns,
|