fix webui

This commit is contained in:
hiyouga 2024-02-29 20:09:09 +08:00
parent c0be617195
commit 1bfa70ce8e
1 changed files with 1 additions and 1 deletions

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: