wetdog commited on
Commit
b0cf7f8
·
verified ·
1 Parent(s): 59965ff

fix token for pipeline

Browse files
Files changed (1) hide show
  1. whisper.py +1 -1
whisper.py CHANGED
@@ -26,7 +26,7 @@ pipe = pipeline(
26
  model=CKPT,
27
  chunk_length_s=30,
28
  device=device,
29
- use_auth_token=os.getenv("HF_TOKEN")
30
  )
31
 
32
  def post_process_transcription(example_transcription, max_repeats=1):
 
26
  model=CKPT,
27
  chunk_length_s=30,
28
  device=device,
29
+ token=os.getenv("HF_TOKEN")
30
  )
31
 
32
  def post_process_transcription(example_transcription, max_repeats=1):