Skip to content

🎥 Make videos programmatically with React

Remove model download detail from transcription modal

JonnyBurgerbff7beb0ebb5
diff --git a/packages/example/e2e/transcription-modal.test.mts b/packages/example/e2e/transcription-modal.test.mts
index abf8f96e42..f69258cfaf 100644
--- a/packages/example/e2e/transcription-modal.test.mts
+++ b/packages/example/e2e/transcription-modal.test.mts
@@ -54,9 +54,6 @@ test.describe('transcription modal', () => {
const model = dialog.getByTitle('Whisper model');
await expect(model).toContainText('small.en');
await expect(dialog.getByTitle('Task')).toHaveCount(0);
- await expect(
- dialog.getByText(/Downloaded with transcription if needed/),
- ).toBeVisible();
await expect(dialog.getByRole('button', {name: /^Download /})).toHaveCount(
0,
);
diff --git a/packages/studio/src/components/Transcription/TranscriptionModal.tsx b/packages/studio/src/components/Transcription/TranscriptionModal.tsx
index c6a5886871..9925bb2f1c 100644
--- a/packages/studio/src/components/Transcription/TranscriptionModal.tsx
+++ b/packages/studio/src/components/Transcription/TranscriptionModal.tsx
@@ -112,15 +112,6 @@ const tooltipInlineCode: React.CSSProperties = {
lineHeight: 'inherit',
};
-const statusText: React.CSSProperties = {
- color: LIGHT_TEXT,
- fontFamily: 'sans-serif',
- fontSize: 13,
- fontVariantNumeric: 'tabular-nums',
- lineHeight: 1.5,
- textAlign: 'right',
-};
-
const TranscriptionSettingLabel: React.FC<{
readonly children: React.ReactNode;
readonly inputId: string | null;
@@ -309,18 +300,6 @@ const ModelSettings: React.FC<{
/>
</div>
) : null}
- <div style={optionRow}>
- <TranscriptionSettingLabel inputId={null} name="Model download">
- If necessary, Studio downloads the model in the background when the
- job starts. Follow its progress in Jobs. Transcription runs locally
- using WebGPU; the media does not leave your device.
- </TranscriptionSettingLabel>
- <div style={rightRow}>
- <div style={statusText}>
- {`${formatBytes(selectedModelInfo.webGpuDownloadSize)} · Downloaded with transcription if needed`}
- </div>
- </div>
- </div>
{supportState.type === 'unsupported' ? (
<div style={{padding: '0 16px'}}>
<ValidationMessage
diff --git a/packages/studio/src/test/transcription-modal.test.tsx b/packages/studio/src/test/transcription-modal.test.tsx
index feff098c67..7ab0bd6bec 100644
--- a/packages/studio/src/test/transcription-modal.test.tsx
+++ b/packages/studio/src/test/transcription-modal.test.tsx
@@ -162,7 +162,6 @@ test('serializes transcription modal settings into caption jobs', async () => {
expect(captionType.style.fontSize).toBe('inherit');
expect(captionType.style.lineHeight).toBe('inherit');
fireEvent.pointerUp(outputHelp);
- screen.getByTitle('Learn more about Model download');
screen.getByTitle('Learn more about Chunk length');
screen.getByTitle('Learn more about Stride length');
screen.getByTitle('Learn more about Force full sequences');