From 2e0aba3e19ef7d12cebe3d742d3c0428523fec6e Mon Sep 17 00:00:00 2001 From: Tadashi Date: Tue, 24 Dec 2024 16:06:48 +0700 Subject: [PATCH] fix: UI enhancement --- libs/ktem/ktem/index/file/ui.py | 4 ++-- libs/ktem/ktem/pages/chat/chat_panel.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ktem/ktem/index/file/ui.py b/libs/ktem/ktem/index/file/ui.py index 3584ce3e..12118afa 100644 --- a/libs/ktem/ktem/index/file/ui.py +++ b/libs/ktem/ktem/index/file/ui.py @@ -21,7 +21,7 @@ from theflow.settings import settings as flowsettings from ...utils.commands import WEB_SEARCH_COMMAND -DOWNLOAD_MESSAGE = "Press again to download" +DOWNLOAD_MESSAGE = "Start download" MAX_FILENAME_LENGTH = 20 chat_input_focus_js = """ @@ -203,7 +203,7 @@ class FileIndexPage(BasePage): with gr.Row(): self.download_all_button = gr.DownloadButton( "Download all files", - visible=True, + visible=False, ) self.delete_all_button = gr.Button( "Delete all files", diff --git a/libs/ktem/ktem/pages/chat/chat_panel.py b/libs/ktem/ktem/pages/chat/chat_panel.py index 3cba5fe4..fafe6b42 100644 --- a/libs/ktem/ktem/pages/chat/chat_panel.py +++ b/libs/ktem/ktem/pages/chat/chat_panel.py @@ -12,7 +12,8 @@ class ChatPanel(BasePage): label=self._app.app_name, placeholder=( "This is the beginning of a new conversation.\n" - "Start by uploading a file or web URL(s)" + "Start by uploading a file or a web URL. " + "Visit Files tab for more options (e.g: GraphRAG)." ), show_label=False, elem_id="main-chat-bot",