Update handler.py
Browse files- 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 =
|
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 |
|