liuyang commited on
Commit
c01ddba
·
1 Parent(s): 1656d98

transcribe by word

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -115,7 +115,7 @@ class WhisperTranscriber:
115
  # Transcribe with timestamps
116
  result = self.pipe(
117
  audio_path,
118
- return_timestamps=True,
119
  generate_kwargs=generate_kwargs,
120
  chunk_length_s=30,
121
  batch_size=128,
 
115
  # Transcribe with timestamps
116
  result = self.pipe(
117
  audio_path,
118
+ return_timestamps="word",
119
  generate_kwargs=generate_kwargs,
120
  chunk_length_s=30,
121
  batch_size=128,