S-Fry commited on
Commit
6ddeab3
·
1 Parent(s): 5760de3

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -5,7 +5,7 @@ import torch
5
 
6
  SAMPLE_RATE = 16000
7
 
8
-
9
 
10
  class EndpointHandler():
11
  def __init__(self, path=""):
 
5
 
6
  SAMPLE_RATE = 16000
7
 
8
+ pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=dk, task="transcribe")
9
 
10
  class EndpointHandler():
11
  def __init__(self, path=""):