versae commited on
Commit
14003cc
·
verified ·
1 Parent(s): 602514f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def pipe(file, return_timestamps=False):
30
  task="transcribe",
31
  no_timestamps=not return_timestamps,
32
  )
33
- asr.model.config.no_timestamps_token_id = tokenizer.encode("<|notimestamps|>", add_special_tokens=False)[0]
34
  return asr(file, return_timestamps=return_timestamps)
35
 
36
  def transcribe(file, return_timestamps=False):
 
30
  task="transcribe",
31
  no_timestamps=not return_timestamps,
32
  )
33
+ asr.model.config.no_timestamps_token_id = asr.tokenizer.encode("<|notimestamps|>", add_special_tokens=False)[0]
34
  return asr(file, return_timestamps=return_timestamps)
35
 
36
  def transcribe(file, return_timestamps=False):