bugfix
This commit is contained in:
parent
fed4c53ba6
commit
28d565f538
@ -3,6 +3,7 @@ from appPublic.worker import get_event_loop
|
||||
from appPublic.log import debug
|
||||
from fw.init import load_fastwhisper
|
||||
from ahserver.webapp import webapp
|
||||
from ahserver.configuredServer import add_startup
|
||||
from ahserver.serverenv import ServerEnv
|
||||
|
||||
from appPublic.registerfunction import RegisterFunction
|
||||
@ -35,17 +36,13 @@ async def start_fw_server(*args, **kw):
|
||||
asyncio.create_task(env.fastwhisper.run())
|
||||
debug('fastwhisper engine started ')
|
||||
|
||||
async def ahapp_built(app):
|
||||
env = ServerEnv()
|
||||
app.on_startup.append(start_fw_server)
|
||||
|
||||
def init():
|
||||
rf = RegisterFunction()
|
||||
rf.register('asr', asr)
|
||||
rf.register('transcribe', transcribe)
|
||||
rf.register('ahapp_built', ahapp_built)
|
||||
rf.register('get_status', get_status)
|
||||
load_fastwhisper()
|
||||
add_startup(start_fw_server)
|
||||
|
||||
if __name__ == '__main__':
|
||||
loop = get_event_loop()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user