fix webui resume

This commit is contained in:
hiyouga 2024-05-03 23:15:19 +08:00
parent 3010154adb
commit 510e64ee70
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@ class Runner:
yield from self._launch(data, do_train=False)
def monitor(self):
self.aborted = False
self.running = True
get = lambda elem_id: self.running_data[self.manager.get_elem_by_id(elem_id)]
lang = get("top.lang")
model_name = get("top.model_name")