Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
xuanricheng
commited on
Commit
•
df2781f
1
Parent(s):
831e1f2
update queue order view
Browse files- src/populate.py +2 -0
src/populate.py
CHANGED
@@ -49,6 +49,8 @@ def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
|
|
49 |
data[EvalQueueColumn.model.name] = make_clickable_model(data["model"])
|
50 |
data[EvalQueueColumn.revision.name] = data.get("revision", "main")
|
51 |
all_evals.append(data)
|
|
|
|
|
52 |
|
53 |
pending_list = [e for e in all_evals if e["status"] in ["PENDING", "RERUN"]]
|
54 |
running_list = [e for e in all_evals if e["status"] == "RUNNING"]
|
|
|
49 |
data[EvalQueueColumn.model.name] = make_clickable_model(data["model"])
|
50 |
data[EvalQueueColumn.revision.name] = data.get("revision", "main")
|
51 |
all_evals.append(data)
|
52 |
+
# all_eval order by submited_time
|
53 |
+
all_evals = sorted(all_evals, key=lambda x: x['submitted_time'])
|
54 |
|
55 |
pending_list = [e for e in all_evals if e["status"] in ["PENDING", "RERUN"]]
|
56 |
running_list = [e for e in all_evals if e["status"] == "RUNNING"]
|