support export size setting

This commit is contained in:
hiyouga
2023-11-26 18:34:09 +08:00
parent ff1c289229
commit 859a6ea942
5 changed files with 11 additions and 5 deletions

View File

@@ -90,6 +90,7 @@ class WebChatModel(ChatModel):
lang = data[self.manager.get_elem_by_name("top.lang")]
if self.demo_mode:
gr.Warning(ALERTS["err_demo"][lang])
yield ALERTS["err_demo"][lang]
return