Allow the application name to be configurable in settings (#80)

* Make app name configurable

* Use app name in browser tab
This commit is contained in:
trducng
2024-05-20 22:37:24 +07:00
committed by GitHub
parent 04e602161b
commit 56dfc8fb53
3 changed files with 4 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ class ChatPanel(BasePage):
def on_building_ui(self):
self.chatbot = gr.Chatbot(
label="Kotaemon",
label=self._app.app_name,
placeholder=(
"This is the beginning of a new conversation.\nMake sure to have added"
" a LLM by following the instructions in the Help tab."

View File

@@ -31,7 +31,7 @@ class LoginPage(BasePage):
self.on_building_ui()
def on_building_ui(self):
gr.Markdown("# Welcome to Kotaemon")
gr.Markdown(f"# Welcome to {self._app.app_name}!")
self.usn = gr.Textbox(label="Username", visible=False)
self.pwd = gr.Textbox(label="Password", type="password", visible=False)
self.btn_login = gr.Button("Login", visible=False)