Describe clearly you don't need to download models on the server.

This commit is contained in:
Lucas Winther
2026-07-14 20:38:25 +02:00
parent 8464f0e492
commit dc4eec2e9e
4 changed files with 25 additions and 1 deletions
+15 -1
View File
@@ -23,6 +23,8 @@ interface ModelPickerProps {
onDownloadSelected: () => void;
/** True while a model load/download is in flight. */
downloading: boolean;
/** True when transcription will run on the server — no download needed (D-020). */
serverEngine: boolean;
}
const DEVICE_OPTIONS: readonly { value: DevicePreference; label: string }[] = [
@@ -56,6 +58,7 @@ export function ModelPicker({
disabled = false,
onDownloadSelected,
downloading,
serverEngine,
}: ModelPickerProps) {
// Size estimates depend on the dtype the worker will pick, which depends on
// the device. Until the worker has reported one, assume WASM unless the
@@ -116,6 +119,13 @@ export function ModelPicker({
Model switching is disabled while a transcription is running.
</p>
)}
{serverEngine && (
<p className="model-picker-hint server-engine-hint" role="status">
Transcription is set to run on the server — the selected model runs
there, so nothing is downloaded to this device. Downloading is only
useful if you plan to transcribe on-device or offline.
</p>
)}
<p
className={`offline-status${offlineReady && downloaded.size > 0 ? " offline-status-ready" : ""}`}
>
@@ -164,7 +174,11 @@ export function ModelPicker({
type="button"
className="model-download-button"
disabled={disabled || downloading}
title="Download this model now so it is available offline. Otherwise it downloads automatically when an on-device transcription starts."
title={
serverEngine
? "Not needed while transcribing on the server — download only to prepare on-device or offline use."
: "Download this model now so it is available offline. Otherwise it downloads automatically when an on-device transcription starts."
}
onClick={onDownloadSelected}
>
{downloading ? "Downloading…" : "Download"}