From 34a1cee6814d0b6d98d5b15440291cbc2ef05548 Mon Sep 17 00:00:00 2001 From: kimtj80 Date: Wed, 15 Nov 2023 14:49:02 +0900 Subject: [PATCH] bug-fix: return value --- fastapi_backend/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastapi_backend/server.py b/fastapi_backend/server.py index af1a80c..79167be 100644 --- a/fastapi_backend/server.py +++ b/fastapi_backend/server.py @@ -642,5 +642,7 @@ async def transcribe_api_endpoint(api_key: str = Form(...), with open(temp_file_path, 'rb') as open_audio_file: transcript = openai.audio.transcriptions.create(model="whisper-1", file=open_audio_file, response_format="text") - return {"transcription": transcription} + #bug-fix, tjkim + #return {"transcription": transcription} + return {"transcription": transcript} ########### Speech2Text End #############