code updated

This commit is contained in:
superobk
2024-04-09 12:00:08 +08:00
parent 41621b44f7
commit c104ea52b5
3 changed files with 12 additions and 2 deletions

View File

@ -38,4 +38,4 @@ class ASR(Blackbox):
txt = await self.processing(d)
except ValueError as e:
return JSONResponse(content={"error": str(e)}, status_code=status.HTTP_400_BAD_REQUEST)
return JSONResponse(content={"txt": txt}, status_code=status.HTTP_200_OK)
return JSONResponse(content={"text": txt}, status_code=status.HTTP_200_OK)