Feat/new UI (#13)

* new custom theme

* improve css: scrollbar, header, tabs and buttons

* update settings tab

* open file index selector by default

* update chat control panel

* update chat panel

* update file index page

* cap gradio<=4.22.0

* rename admin page

* adjust UI

* update flowsettings

* auto start in browser

* change colour for edit LLM page's button
This commit is contained in:
ian_Cin
2024-04-08 22:23:00 +07:00
committed by GitHub
parent a203fc0f7c
commit 8001c86b16
13 changed files with 239 additions and 145 deletions

View File

@@ -36,10 +36,7 @@ class BaseApp:
def __init__(self):
self.dev_mode = getattr(settings, "KH_MODE", "") == "dev"
self.f_user_management = getattr(settings, "KH_FEATURE_USER_MANAGEMENT", False)
self._theme = gr.themes.Base(
font=("ui-sans-serif", "system-ui", "sans-serif"),
font_mono=("ui-monospace", "Consolas", "monospace"),
)
self._theme = gr.Theme.from_hub("lone17/kotaemon")
dir_assets = Path(__file__).parent / "assets"
with (dir_assets / "css" / "main.css").open() as fi: