Skip to content

Commit 7c40f90

Browse files
committed
fix: tell operators to select a model when one is already installed
Get started was saying "Download a model" whenever the engine was not ready, including when models were already on disk.
1 parent c90b19a commit 7c40f90

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/fragments/overview.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,12 +387,18 @@ def _onboarding_steps(
387387
steps.append(f"<li><strong>Install FFmpeg</strong>: {escape(ffmpeg_hint)}.</li>")
388388
if not status.setup.engine_binary_available:
389389
steps.append(f"<li><strong>Install a speech engine</strong>: {escape(engine_hint)}.</li>")
390-
if not status.setup.model_installed or not status.setup.engine_ready:
390+
if not status.setup.model_installed:
391391
steps.append(
392392
f"<li><strong>Download a model</strong> for this {escape(machine_label)}. "
393393
'Open <button type="button" class="text-link" data-open-tab="models">Models</button> '
394394
"and pick a recommended one.</li>"
395395
)
396+
elif not status.setup.engine_ready:
397+
steps.append(
398+
"<li><strong>Select a model</strong> you already have. "
399+
'Open <button type="button" class="text-link" data-open-tab="models">Models</button> '
400+
"and activate one.</li>"
401+
)
396402
steps.append(
397403
"<li><strong>Pair your phone</strong>: "
398404
'scan the QR under <button type="button" class="text-link" data-open-tab="pair">'

0 commit comments

Comments
 (0)