doc: swagger.yml

This commit is contained in:
Dan Chen
2024-03-18 17:47:56 +08:00
parent 4ae33bfb02
commit f6dd6159a8
2 changed files with 76 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class AudioToText(Blackbox):
return text
async def fast_api_handler(self, request) -> Response:
data = (await request.form()).get("data")
data = (await request.form()).get("audio")
if data is None:
return JSONResponse(content={"error": "data is required"}, status_code=status.HTTP_400_BAD_REQUEST)
d = await data.read()