From 543effda1987013bbce4a65faea4631892182e98 Mon Sep 17 00:00:00 2001 From: Bowen Xian Date: Fri, 18 Oct 2024 09:00:50 +0000 Subject: [PATCH] fix display bug in webapp --- rdagent/log/ui/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rdagent/log/ui/app.py b/rdagent/log/ui/app.py index 3f6dd5d0..2e1d65dd 100644 --- a/rdagent/log/ui/app.py +++ b/rdagent/log/ui/app.py @@ -518,6 +518,11 @@ def research_window(): # loaded model exp with c2: if mem := state.msgs[round]["d.load_experiment"]: + # 'load_experiment' should in 'r' now, but old version trace may in 'd', so we need to check both + # TODO: modify the way to get one message with a specific tag like 'load_experiment' in the future + me: QlibModelExperiment = mem[0].content + tasks_window(me.sub_tasks) + elif mem := state.msgs[round]["r.load_experiment"]: me: QlibModelExperiment = mem[0].content tasks_window(me.sub_tasks)