AngelinaZanardi commited on
Commit
43e8833
·
verified ·
1 Parent(s): b8fdc42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ 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, language=lang, task="transcribe")
47
 
48
  def format_output(text):
49
  # Add a line break after ".", "!", ":", or "?" unless part of sequences like "..."
 
43
  task="transcribe",
44
  no_timestamps=not return_timestamps,
45
  )
46
+ return asr(file, return_timestamps=return_timestamps, batch_size=24, generate_kwargs={'task': 'transcribe', 'language': lang})
47
 
48
  def format_output(text):
49
  # Add a line break after ".", "!", ":", or "?" unless part of sequences like "..."