This commit is contained in:
yumoqing 2024-09-04 19:44:30 +08:00
parent c2fd576f11
commit a4cfb92dfc

View File

@ -24,9 +24,10 @@ def save_base64_wav(base64_data, output_file,sample_rate=16000, num_channels=1):
async def generate(request, kw): async def generate(request, kw):
params_kw = kw.get('params_kw', DictObject()) params_kw = kw.get('params_kw', DictObject())
info(f'{params_kw=}')
model = params_kw.model model = params_kw.model
audio_file = params_kw.audio_file audio_file = realpath(params_kw.audio_file)
info(f'{params_kw=}, {audio_file=}')
if not audio_file: if not audio_file:
audio = params_kw.audio audio = params_kw.audio
if audio is None: if audio is None: