change the function name

This commit is contained in:
iflamed 2024-07-25 16:32:56 +08:00
parent c498c22671
commit e7c17cf042

2
api.py
View File

@ -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: