Skip to content

Commit 8261226

Browse files
committed
Reduce segment limit to 3 for testing in WhisperTranscriber
1 parent 4e1f55e commit 8261226

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/whisper.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ describe('WhisperTranscriber', () => {
160160

161161
segments.push(segment);
162162

163-
// Limit to first 10 segments for testing
164-
if (segments.length >= 10) {
163+
// Limit to first 3 segments for testing
164+
if (segments.length >= 3) {
165165
break;
166166
}
167167
}
@@ -208,8 +208,8 @@ describe('WhisperTranscriber', () => {
208208

209209
segments.push(segment);
210210

211-
// Limit to first 10 segments for testing
212-
if (segments.length >= 10) {
211+
// Limit to first 3 segments for testing
212+
if (segments.length >= 3) {
213213
break;
214214
}
215215
}
@@ -264,8 +264,8 @@ describe('WhisperTranscriber', () => {
264264
for await (const segment of transcriber.transcribe(decoderGenerator)) {
265265
segments.push(segment);
266266

267-
// Limit to first 10 segments for testing
268-
if (segments.length >= 10) {
267+
// Limit to first 3 segments for testing
268+
if (segments.length >= 3) {
269269
break;
270270
}
271271
}

0 commit comments

Comments
 (0)