Spaces:
Running
Running
yinanhe
commited on
Commit
•
1521b6f
1
Parent(s):
c1f5a69
[update] fix bug
Browse files
app.py
CHANGED
@@ -90,7 +90,7 @@ def get_baseline_df():
|
|
90 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
91 |
submission_repo.git_pull()
|
92 |
df = pd.read_csv(CSV_DIR)
|
93 |
-
df = get_final_score(df)
|
94 |
# calculate the Overall Score
|
95 |
df = df.sort_values(by="Overall Score", ascending=False)
|
96 |
present_columns = MODEL_INFO + checkbox_group.value
|
@@ -101,7 +101,7 @@ def get_all_df():
|
|
101 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
102 |
submission_repo.git_pull()
|
103 |
df = pd.read_csv(CSV_DIR)
|
104 |
-
df = get_final_score(df)
|
105 |
df = df.sort_values(by="Selected Score", ascending=False)
|
106 |
return df
|
107 |
|
|
|
90 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
91 |
submission_repo.git_pull()
|
92 |
df = pd.read_csv(CSV_DIR)
|
93 |
+
df = get_final_score(df, checkbox_group.value)
|
94 |
# calculate the Overall Score
|
95 |
df = df.sort_values(by="Overall Score", ascending=False)
|
96 |
present_columns = MODEL_INFO + checkbox_group.value
|
|
|
101 |
submission_repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN, repo_type="dataset")
|
102 |
submission_repo.git_pull()
|
103 |
df = pd.read_csv(CSV_DIR)
|
104 |
+
df = get_final_score(df, checkbox_group.value)
|
105 |
df = df.sort_values(by="Selected Score", ascending=False)
|
106 |
return df
|
107 |
|