bugfix
This commit is contained in:
parent
9f57b05801
commit
615ccf307a
@ -1,6 +1,16 @@
|
||||
from fastwhisper.init import load_fastwhisper
|
||||
from ahserver.webapp import webapp
|
||||
|
||||
async def transcrible(request, *args, **kw):
|
||||
env = request._run_ns
|
||||
ret = await env.fastwhister.submit_task(env.params_kw)
|
||||
return ret
|
||||
|
||||
async def get_status(request, *args, **kw):
|
||||
env = request._run_ns
|
||||
ret = await env.fastwhister.get_status(env.params_kw.task_id)
|
||||
return ret
|
||||
|
||||
def init():
|
||||
load_fastwhisper()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user