sanchit-gandhi HF staff commited on
Commit
659a76f
1 Parent(s): 99975a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,11 +11,11 @@ MODEL_NAME = "openai/whisper-small"
11
  device = 0 if torch.cuda.is_available() else "cpu"
12
  HF_TOKEN = os.environ.get("HF_TOKEN")
13
 
14
- login(HF_TOKEN)
15
 
16
  pipe = ASRDiarizationPipeline.from_pretrained(
17
  asr_model=MODEL_NAME,
18
  device=device,
 
19
  )
20
 
21
  def tuple_to_string(start_end_tuple, ndigits=1):
 
11
  device = 0 if torch.cuda.is_available() else "cpu"
12
  HF_TOKEN = os.environ.get("HF_TOKEN")
13
 
 
14
 
15
  pipe = ASRDiarizationPipeline.from_pretrained(
16
  asr_model=MODEL_NAME,
17
  device=device,
18
+ use_auth_token=HF_TOKEN,
19
  )
20
 
21
  def tuple_to_string(start_end_tuple, ndigits=1):