Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -17,9 +17,9 @@ MODEL_INFO = [
|
|
| 17 |
"Biology", "Business", "Chemistry", "Computer Science", "Economics", "Engineering",
|
| 18 |
"Health", "History", "Law", "Math", "Philosophy", "Physics", "Psychology", "Other"]
|
| 19 |
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
SUBMISSION_NAME = "mmlu_pro_leaderboard_submission"
|
| 25 |
SUBMISSION_URL = os.path.join("https://huggingface.co/datasets/TIGER-Lab/", SUBMISSION_NAME)
|
|
@@ -65,6 +65,8 @@ After submitting, you can click the "Refresh" button to see the updated leaderbo
|
|
| 65 |
|
| 66 |
|
| 67 |
def get_df():
|
|
|
|
|
|
|
| 68 |
repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN)
|
| 69 |
repo.git_pull()
|
| 70 |
df = pd.read_csv(CSV_DIR)
|
|
|
|
| 17 |
"Biology", "Business", "Chemistry", "Computer Science", "Economics", "Engineering",
|
| 18 |
"Health", "History", "Law", "Math", "Philosophy", "Physics", "Psychology", "Other"]
|
| 19 |
|
| 20 |
+
DATA_TILE_TYPE = ['markdown', 'number', 'number', 'number', 'number', 'number', 'number',
|
| 21 |
+
'number', 'number', 'number', 'number', 'number', 'number', 'number',
|
| 22 |
+
'number', 'number']
|
| 23 |
|
| 24 |
SUBMISSION_NAME = "mmlu_pro_leaderboard_submission"
|
| 25 |
SUBMISSION_URL = os.path.join("https://huggingface.co/datasets/TIGER-Lab/", SUBMISSION_NAME)
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
def get_df():
|
| 68 |
+
print("HF_TOKEN", HF_TOKEN)
|
| 69 |
+
print("SUBMISSION_URL", SUBMISSION_URL)
|
| 70 |
repo = Repository(local_dir=SUBMISSION_NAME, clone_from=SUBMISSION_URL, use_auth_token=HF_TOKEN)
|
| 71 |
repo.git_pull()
|
| 72 |
df = pd.read_csv(CSV_DIR)
|