Spaces:
Sleeping
Sleeping
XufengDuan
commited on
Commit
•
7e4686f
1
Parent(s):
baaed3a
updated scripts
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def restart_space():
|
|
24 |
envs.API.restart_space(repo_id=envs.REPO_ID, token=TOKEN)
|
25 |
|
26 |
def init_space():
|
27 |
-
dataset_df = get_dataset_summary_table(file_path='blog/Hallucination-Leaderboard-Summary.csv')
|
28 |
|
29 |
if socket.gethostname() not in {'neuromancer'}:
|
30 |
# sync model_type with open-llm-leaderboard
|
@@ -33,9 +33,9 @@ def init_space():
|
|
33 |
raw_data, original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, "", COLS, BENCHMARK_COLS)
|
34 |
|
35 |
finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
36 |
-
return
|
37 |
|
38 |
-
|
39 |
|
40 |
|
41 |
# try:
|
|
|
24 |
envs.API.restart_space(repo_id=envs.REPO_ID, token=TOKEN)
|
25 |
|
26 |
def init_space():
|
27 |
+
#dataset_df = get_dataset_summary_table(file_path='blog/Hallucination-Leaderboard-Summary.csv')
|
28 |
|
29 |
if socket.gethostname() not in {'neuromancer'}:
|
30 |
# sync model_type with open-llm-leaderboard
|
|
|
33 |
raw_data, original_df = get_leaderboard_df(EVAL_RESULTS_PATH, EVAL_REQUESTS_PATH, "", COLS, BENCHMARK_COLS)
|
34 |
|
35 |
finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = get_evaluation_queue_df(EVAL_REQUESTS_PATH, EVAL_COLS)
|
36 |
+
return original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df
|
37 |
|
38 |
+
original_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = init_space()
|
39 |
|
40 |
|
41 |
# try:
|