This commit is contained in:
yumoqing 2024-08-03 19:06:37 +08:00
parent f09c6f82e9
commit 4b6de15a04

View File

@ -1,9 +1,11 @@
from appPublic.log import info, debug, warning, error, exception, critical
from appPublic.dictObject import DictObject
from ahserver.serverenv import ServerEnv
from aiohttp.web import StreamResponse
async def generate(request, **kw):
model = kw.get('model', 'whisper')
params_kw = kw.get(params_kw, DictObject())
model = params_kw.model
engine = None
g = ServerEnv()
if model=='whisper':