fix webui

Former-commit-id: 730377a818a7ff5e45bf4ac9ee4364c4f123a598
This commit is contained in:
hiyouga 2024-02-29 20:09:09 +08:00
parent 88fddb879d
commit 3eafa2dd9e

View File

@ -38,7 +38,7 @@ class Engine:
yield self._form_dict(init_dict)
if not self.pure_chat:
if not self.pure_chat and not self.demo_mode:
if self.runner.alive:
yield {elem: gr.update(value=value) for elem, value in self.runner.running_data.items()}
if self.runner.do_train: