This commit is contained in:
yumoqing 2024-08-03 18:26:44 +08:00
parent 8603274074
commit 066d108e94

View File

@ -1,5 +1,6 @@
from ahserver.serverenv import ServerEnv from ahserver.serverenv import ServerEnv
from appPublic.worker import awaitify from appPublic.worker import awaitify
from appPublic.log import info, debug, warning, error, exception, critical
from ahserver.globalEnv import get_definition from ahserver.globalEnv import get_definition
import numpy as np import numpy as np
@ -26,7 +27,9 @@ class WhisperBase:
self.model = whisper.load_model(model_name) self.model = whisper.load_model(model_name)
def _stt(self, filepath): def _stt(self, filepath):
pass e = Exception(f'{filepath=} WhisperBase can not use')
exception(f'{e=}')
raise e
stt = awaitify(_stt) stt = awaitify(_stt)