liuyang commited on
Commit
9a3b106
·
1 Parent(s): 1bafda4

add chunk length and batch size parameters to WhisperTranscriber

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -228,7 +228,9 @@ class WhisperTranscriber:
228
  result = self.pipe(
229
  audio_path,
230
  return_timestamps=True,
231
- generate_kwargs=generate_kwargs
 
 
232
  )
233
 
234
  # Extract segments and detected language
 
228
  result = self.pipe(
229
  audio_path,
230
  return_timestamps=True,
231
+ generate_kwargs=generate_kwargs,
232
+ chunk_length_s=30,
233
+ batch_size=128,
234
  )
235
 
236
  # Extract segments and detected language