Skip to content

Commit

Permalink
bug-fix: return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim-taejung committed Nov 15, 2023
1 parent b87f023 commit 34a1cee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fastapi_backend/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 #############

0 comments on commit 34a1cee

Please sign in to comment.