This commit is contained in:
yumoqing 2024-08-04 09:42:23 +08:00
parent 821adc10a8
commit 61ecdfea36

View File

@ -20,7 +20,7 @@ async def generate(request, **kw):
info(f'read from request stream {line=}')
txt = await engine.stt(line)
content += txt
d = json.dumps({'content':content})
d = json.dumps({'content':content}) + '\n'
btxt = d.encode('utf8')
await resp.write(btxt)
await resp.drain()