Spaces:
Running
Running
yinanhe
commited on
Commit
·
1293ed8
1
Parent(s):
de6ef99
[update] README
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def get_baseline_df():
|
|
97 |
submission_repo.git_pull()
|
98 |
df = pd.read_csv(CSV_DIR)
|
99 |
df = get_final_score(df, checkbox_group.value)
|
100 |
-
df = df.sort_values(by="
|
101 |
present_columns = MODEL_INFO + checkbox_group.value
|
102 |
df = df[present_columns]
|
103 |
return df
|
@@ -117,7 +117,7 @@ def on_filter_model_size_method_change(selected_columns):
|
|
117 |
selected_columns = [item for item in TASK_INFO if item in selected_columns]
|
118 |
present_columns = MODEL_INFO + selected_columns
|
119 |
updated_data = updated_data[present_columns]
|
120 |
-
updated_data = updated_data.sort_values(by=
|
121 |
updated_headers = present_columns
|
122 |
update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
|
123 |
# print(updated_data,present_columns,update_datatype)
|
|
|
97 |
submission_repo.git_pull()
|
98 |
df = pd.read_csv(CSV_DIR)
|
99 |
df = get_final_score(df, checkbox_group.value)
|
100 |
+
df = df.sort_values(by="Selected Score", ascending=False)
|
101 |
present_columns = MODEL_INFO + checkbox_group.value
|
102 |
df = df[present_columns]
|
103 |
return df
|
|
|
117 |
selected_columns = [item for item in TASK_INFO if item in selected_columns]
|
118 |
present_columns = MODEL_INFO + selected_columns
|
119 |
updated_data = updated_data[present_columns]
|
120 |
+
updated_data = updated_data.sort_values(by="Selected Score", ascending=False)
|
121 |
updated_headers = present_columns
|
122 |
update_datatype = [DATA_TITILE_TYPE[COLUMN_NAMES.index(x)] for x in updated_headers]
|
123 |
# print(updated_data,present_columns,update_datatype)
|