This commit is contained in:
hiyouga
2024-04-17 22:17:19 +08:00
parent e3ca57602c
commit 6d641af703
15 changed files with 75 additions and 32 deletions

View File

@@ -1,5 +1,4 @@
import gradio as gr
from ..extras.packages import is_gradio_available
from .common import save_config
from .components import (
create_chat_box,
@@ -13,6 +12,10 @@ from .css import CSS
from .engine import Engine
if is_gradio_available():
import gradio as gr
def create_ui(demo_mode: bool = False) -> gr.Blocks:
engine = Engine(demo_mode=demo_mode, pure_chat=False)