f5tts/wwwroot/api/inference/index.dspy
2024-12-25 16:04:39 +08:00

7 lines
198 B
Plaintext

# normal mode
speaker = params_kw.speaker or 'main'
path = await infer(params_kw.prompt, speaker)
ret = entire_url(f'/idfile?path={path}')
debug(f'inference/index.dspy:return url={ret}')
return ret