Spaces:
Running
Running
Fixed the name
Browse files
utils.py
CHANGED
@@ -21,7 +21,7 @@ DATA_TITLE_TYPE = ['markdown', 'str', 'markdown',
|
|
21 |
|
22 |
SUBMISSION_NAME = "Chumor-submissions"
|
23 |
SUBMISSION_URL = os.path.join("https://huggingface.co/datasets/dnaihao", SUBMISSION_NAME)
|
24 |
-
CSV_DIR = "./Chumor-submissions/
|
25 |
|
26 |
COLUMN_NAMES = MODEL_INFO
|
27 |
|
@@ -98,8 +98,6 @@ You can generate an output file in the above format using the evaluation script
|
|
98 |
def get_df():
|
99 |
repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN)
|
100 |
repo.git_pull()
|
101 |
-
print(os.listdir("."))
|
102 |
-
print(os.listdir("./Chumor-submissions/"))
|
103 |
df = pd.read_csv(CSV_DIR)
|
104 |
df['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)
|
105 |
df = df.sort_values(by=['Overall'], ascending=False)
|
|
|
21 |
|
22 |
SUBMISSION_NAME = "Chumor-submissions"
|
23 |
SUBMISSION_URL = os.path.join("https://huggingface.co/datasets/dnaihao", SUBMISSION_NAME)
|
24 |
+
CSV_DIR = "./Chumor-submissions/result.csv"
|
25 |
|
26 |
COLUMN_NAMES = MODEL_INFO
|
27 |
|
|
|
98 |
def get_df():
|
99 |
repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN)
|
100 |
repo.git_pull()
|
|
|
|
|
101 |
df = pd.read_csv(CSV_DIR)
|
102 |
df['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)
|
103 |
df = df.sort_values(by=['Overall'], ascending=False)
|