Skip to content

Commit 8146eb9

Browse files
Update UI cosmetics (progress meter) #44
1 parent 3014f0e commit 8146eb9

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

app.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description = "QnA with tabular data using NLQ"
55
LongDescription = "about.md"
66
InstanceLifecycle = "MANAGED"
77
Tags = ["DATA_SCIENCE", "MACHINE_LEARNING", "NLP", "GENERATIVE_AI"]
8-
Version = "0.2.3"
8+
Version = "0.2.4"
99

1010
[Runtime]
1111
MemoryLimit = "64Gi"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sql-sidekick"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
license = "Apache-2.0 license"
55
description = "An AI assistant for SQL generation"
66
authors = [

sidekick/prompter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
execute_query_pd, extract_table_names,
2525
generate_suggestions, save_query, setup_dir)
2626

27-
__version__ = "0.2.3"
27+
__version__ = "0.2.4"
2828

2929
# Load the config file and initialize required paths
3030
app_base_path = (Path(__file__).parent / "../").resolve()

ui/app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ async def _update_before_job_start(q: Q):
317317
q,
318318
"chat_card_progress",
319319
ui.form_card(
320-
box=ui.box("vertical", height="500px"), items=[ui.progress(name='progress', label='Thinking ...', value=0)]))
320+
box=ui.box("vertical", height="500px"), items=[ui.inline([ui.image(title='', path=q.user.progress_icon_path)], justify='center'),
321+
ui.progress(name='progress', label='Thinking ...', value=0)
322+
]))
321323
await draw_additional_actions(q)
322324

323325

@@ -725,6 +727,7 @@ async def init(q: Q) -> None:
725727
q.client.timezone = "UTC"
726728
q.args.demo_mode = False
727729
q.app.toml = toml.load("app.toml")
730+
q.user.progress_icon_path, = await q.site.upload(['./ui/assets/Loading_icon.gif'])
728731

729732
username, profile_pic = q.auth.username, q.app.persona_path
730733
q.page["meta"] = ui.meta_card(

0 commit comments

Comments
 (0)