Spaces:
Running
Running
ycy
commited on
Commit
·
aa0c9ba
1
Parent(s):
a71e7ca
tes
Browse files- app.py +10 -0
- src/populate.py +0 -1
app.py
CHANGED
|
@@ -58,6 +58,16 @@ LEADERBOARD_DF = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, COLS,
|
|
| 58 |
pending_eval_queue_df,
|
| 59 |
) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
| 60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
def init_leaderboard(dataframe):
|
| 62 |
if dataframe is None or dataframe.empty:
|
| 63 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
|
|
|
| 58 |
pending_eval_queue_df,
|
| 59 |
) = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
| 60 |
|
| 61 |
+
|
| 62 |
+
pd.set_option('display.max_rows', None) # 显示所有行
|
| 63 |
+
pd.set_option('display.max_columns', None) # 显示所有列
|
| 64 |
+
pd.set_option('display.max_colwidth', None) # 不省略列内容
|
| 65 |
+
pd.set_option('display.width', 1000) # 控制输出宽度
|
| 66 |
+
print(LEADERBOARD_DF)
|
| 67 |
+
print(finished_eval_queue_df)
|
| 68 |
+
print(running_eval_queue_df)
|
| 69 |
+
print(pending_eval_queue_df)
|
| 70 |
+
assert 0
|
| 71 |
def init_leaderboard(dataframe):
|
| 72 |
if dataframe is None or dataframe.empty:
|
| 73 |
raise ValueError("Leaderboard DataFrame is empty or None.")
|
src/populate.py
CHANGED
|
@@ -12,7 +12,6 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
| 12 |
"""Creates a dataframe from all the individual experiment results"""
|
| 13 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
| 14 |
print(raw_data)
|
| 15 |
-
assert 0
|
| 16 |
all_data_json = [v.to_dict() for v in raw_data]
|
| 17 |
|
| 18 |
df = pd.DataFrame.from_records(all_data_json)
|
|
|
|
| 12 |
"""Creates a dataframe from all the individual experiment results"""
|
| 13 |
raw_data = get_raw_eval_results(results_path, requests_path)
|
| 14 |
print(raw_data)
|
|
|
|
| 15 |
all_data_json = [v.to_dict() for v in raw_data]
|
| 16 |
|
| 17 |
df = pd.DataFrame.from_records(all_data_json)
|