Spaces:
Sleeping
Sleeping
XufengDuan
commited on
Commit
•
baaed3a
1
Parent(s):
4d9df48
updated scripts
Browse files- src/envs.py +1 -1
- src/populate.py +1 -1
src/envs.py
CHANGED
@@ -5,7 +5,7 @@ from huggingface_hub import HfApi
|
|
5 |
|
6 |
# replace this with our token
|
7 |
# TOKEN = os.environ.get("HF_TOKEN", None)
|
8 |
-
TOKEN = os.getenv("
|
9 |
# print(TOKEN)
|
10 |
# OWNER = "vectara"
|
11 |
# REPO_ID = f"{OWNER}/Humanlike"
|
|
|
5 |
|
6 |
# replace this with our token
|
7 |
# TOKEN = os.environ.get("HF_TOKEN", None)
|
8 |
+
TOKEN = os.getenv("H4_TOKEN")
|
9 |
# print(TOKEN)
|
10 |
# OWNER = "vectara"
|
11 |
# REPO_ID = f"{OWNER}/Humanlike"
|
src/populate.py
CHANGED
@@ -11,7 +11,7 @@ import src.leaderboard.read_evals as read_evals
|
|
11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
12 |
print(results_path, requests_path)
|
13 |
raw_data = read_evals.get_raw_eval_results(results_path, requests_path)
|
14 |
-
print("raw_data",raw_data)
|
15 |
all_data_json = [v.to_dict() for v in raw_data]
|
16 |
|
17 |
print(all_data_json)
|
|
|
11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
12 |
print(results_path, requests_path)
|
13 |
raw_data = read_evals.get_raw_eval_results(results_path, requests_path)
|
14 |
+
print("raw_data:",raw_data)
|
15 |
all_data_json = [v.to_dict() for v in raw_data]
|
16 |
|
17 |
print(all_data_json)
|