From e7c17cf04220d4e1645675e451eee6340d0c975c Mon Sep 17 00:00:00 2001 From: iflamed Date: Thu, 25 Jul 2024 16:32:56 +0800 Subject: [PATCH] change the function name --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.py b/api.py index 97d3b7d..2884658 100644 --- a/api.py +++ b/api.py @@ -45,7 +45,7 @@ async def root(): """ @app.post("/api/v1/asr") -async def create_files(files: Annotated[List[bytes], File(description="wav or mp3 audios in 16KHz")], keys: Annotated[str, Form(description="name of each audio joined with comma")], lang: Annotated[Language, Form(description="language of audio content")] = "auto"): +async def turn_audio_to_text(files: Annotated[List[bytes], File(description="wav or mp3 audios in 16KHz")], keys: Annotated[str, Form(description="name of each audio joined with comma")], lang: Annotated[Language, Form(description="language of audio content")] = "auto"): audios = [] audio_fs = 0 for file in files: