versae commited on
Commit
1515c07
·
verified ·
1 Parent(s): 7f11cc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -26,6 +26,7 @@ def pipe(file):
26
  token=auth_token,
27
  )
28
  asr.model.config.forced_decoder_ids = asr.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
 
29
 
30
  def transcribe(file):
31
  text = pipe(file)["text"]
 
26
  token=auth_token,
27
  )
28
  asr.model.config.forced_decoder_ids = asr.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
29
+ return asr(file)
30
 
31
  def transcribe(file):
32
  text = pipe(file)["text"]