update api and support abort eval in webui

Former-commit-id: 8661bed68812e9ded9439e8a821b1d7716bc797b
This commit is contained in:
hiyouga
2024-05-04 15:59:15 +08:00
parent b1b18b2c5a
commit efa9140577
11 changed files with 277 additions and 192 deletions

View File

@@ -68,9 +68,9 @@ def create_web_demo() -> gr.Blocks:
return demo
def run_web_ui():
def run_web_ui() -> None:
create_ui().queue().launch()
def run_web_demo():
def run_web_demo() -> None:
create_web_demo().queue().launch()