Spaces:
Sleeping
Sleeping
Clémentine
commited on
Commit
•
d54df1a
1
Parent(s):
86a6783
debug
Browse files- app.py +2 -2
- src/populate.py +1 -0
app.py
CHANGED
@@ -40,14 +40,14 @@ def launch_backend():
|
|
40 |
_ = subprocess.run(["python", "main_backend.py"])
|
41 |
|
42 |
try:
|
43 |
-
print(EVAL_REQUESTS_PATH)
|
44 |
snapshot_download(
|
45 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
46 |
)
|
47 |
except Exception:
|
48 |
restart_space()
|
49 |
try:
|
50 |
-
print(EVAL_RESULTS_PATH)
|
51 |
snapshot_download(
|
52 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
53 |
)
|
|
|
40 |
_ = subprocess.run(["python", "main_backend.py"])
|
41 |
|
42 |
try:
|
43 |
+
print(QUEUE_REPO, "to", EVAL_REQUESTS_PATH)
|
44 |
snapshot_download(
|
45 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
46 |
)
|
47 |
except Exception:
|
48 |
restart_space()
|
49 |
try:
|
50 |
+
print(RESULTS_REPO, "to", EVAL_RESULTS_PATH)
|
51 |
snapshot_download(
|
52 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
53 |
)
|
src/populate.py
CHANGED
@@ -10,6 +10,7 @@ from src.leaderboard.read_evals import get_raw_eval_results
|
|
10 |
|
11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
12 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
|
|
13 |
all_data_json = [v.to_dict() for v in raw_data]
|
14 |
|
15 |
df = pd.DataFrame.from_records(all_data_json)
|
|
|
10 |
|
11 |
def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchmark_cols: list) -> pd.DataFrame:
|
12 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
13 |
+
print(raw_data)
|
14 |
all_data_json = [v.to_dict() for v in raw_data]
|
15 |
|
16 |
df = pd.DataFrame.from_records(all_data_json)
|