AngelinaZanardi commited on
Commit
76fe147
·
verified ·
1 Parent(s): c5c645e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -43,6 +43,8 @@ def pipe(file, return_timestamps=False,lang="nn"):
43
  task="transcribe",
44
  no_timestamps=not return_timestamps,
45
  )
 
 
46
  return asr(file, return_timestamps=return_timestamps, batch_size=24)
47
 
48
  def format_output(text):
 
43
  task="transcribe",
44
  no_timestamps=not return_timestamps,
45
  )
46
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
47
+ print("Supported languages:", tokenizer.lang_code_to_id.keys())
48
  return asr(file, return_timestamps=return_timestamps, batch_size=24)
49
 
50
  def format_output(text):