slplab commited on
Commit
c22159d
1 Parent(s): 099a81c

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -26,7 +26,7 @@ class EndpointHandler:
26
 
27
  def __call__(self, data: Any) -> List[Dict[str, str]]:
28
  print('==========NEW PROCESS=========')
29
- transcribe = pipeline(task="automatic-speech-recognition", model="vasista22/whisper-kannada-tiny")
30
  transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="ko", task="transcribe")
31
  result = transcribe(data['inputs'])
32
 
 
26
 
27
  def __call__(self, data: Any) -> List[Dict[str, str]]:
28
  print('==========NEW PROCESS=========')
29
+ transcribe = self.pipe
30
  transcribe.model.config.forced_decoder_ids = transcribe.tokenizer.get_decoder_prompt_ids(language="ko", task="transcribe")
31
  result = transcribe(data['inputs'])
32