diff --git a/app/asr_engine.py b/app/asr_engine.py index 646d458..7b383f8 100644 --- a/app/asr_engine.py +++ b/app/asr_engine.py @@ -49,14 +49,15 @@ async def generate(request, kw): dic = await engine.stt(fname) t2 = time.time() os.remove(fname) - info(f'{dic=}') - return { + ret = { "status":"ok", "time_cost":t2-t1, "content":dic['text'], "segments":dic['segments'], "language":dic['language'] } + info(f'{dic=}, {ret=}') + return ret except Exception as e: exception(f'{e}') print_exc()