camparchimedes commited on
Commit
a95b479
·
verified ·
1 Parent(s): 5ae4cad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ def transcribe_audio(audio_file, forced_decoder_ids):
39
  # "You have passed task=transcribe, but also have set `forced_decoder_ids` to [[1, 50288], [2, 50360], [3, 50364]] which creates a conflict. `forced_decoder_ids` will be ignored in favor of task=transcribe."
40
 
41
  with torch.no_grad():
42
- output = pipe(audio_file, chunk_length_s=30, generate_kwargs={"forced_decoder_ids”: forced_decoder_ids", "task": "transcribe", "language": "no"})
43
 
44
  text = output["text"]
45
  end_time = time.time()
 
39
  # "You have passed task=transcribe, but also have set `forced_decoder_ids` to [[1, 50288], [2, 50360], [3, 50364]] which creates a conflict. `forced_decoder_ids` will be ignored in favor of task=transcribe."
40
 
41
  with torch.no_grad():
42
+ output = pipe(audio_file, chunk_length_s=30, generate_kwargs={"forced_decoder_ids”: forced_decoder_ids"})
43
 
44
  text = output["text"]
45
  end_time = time.time()