bugfix
This commit is contained in:
parent
504dfb3157
commit
4d1e151a52
@ -32,7 +32,6 @@ if __name__ == '__main__':
|
||||
server = ConfiguredServer(workdir=workdir)
|
||||
rf = RegisterFunction()
|
||||
rf.register('generate', generate)
|
||||
info(f'{rf.registKW=}')
|
||||
g = ServerEnv()
|
||||
g.whisper_engine = WhisperFile()
|
||||
port = args.port or config.website.port or 8080
|
||||
|
@ -21,7 +21,7 @@ def save_base64_wav(base64_data, output_file,sample_rate=16000, num_channels=1):
|
||||
# Write the decoded data to the WAV file
|
||||
wf.writeframes(wav_data)
|
||||
|
||||
async def generate(request, **kw):
|
||||
async def generate(request, kw):
|
||||
params_kw = kw.get('params_kw', DictObject())
|
||||
model = params_kw.model
|
||||
audio = params_kw.audio
|
||||
|
Loading…
Reference in New Issue
Block a user