saattrupdan commited on
Commit
243b3bb
·
1 Parent(s): 63794cb

fix: Force HUGGINGFACE_HUB_TOKEN to be present

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ transcriber = pipeline(
24
  task="automatic-speech-recognition",
25
  model="alexandrainst/roest-315m",
26
  device=device,
27
- token=os.getenv("HUGGINGFACE_HUB_TOKEN", True),
28
  )
29
  transcription_fixer = PunctFixer(language="da", device=device)
30
 
 
24
  task="automatic-speech-recognition",
25
  model="alexandrainst/roest-315m",
26
  device=device,
27
+ token=os.environ["HUGGINGFACE_HUB_TOKEN"],
28
  )
29
  transcription_fixer = PunctFixer(language="da", device=device)
30