fix: UI enhancement

This commit is contained in:
Tadashi
2024-12-24 16:06:48 +07:00
parent ca8705949c
commit 2e0aba3e19
2 changed files with 4 additions and 3 deletions

View File

@@ -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",

View File

@@ -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",