From 2ef4fc121587ac8ca9aebec26dcaedc31d741af1 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 11 Feb 2024 02:17:24 -0800 Subject: [PATCH] fix: strip transcription text --- backend/apps/audio/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/audio/main.py b/backend/apps/audio/main.py index f80e3ac83..c03aaf37a 100644 --- a/backend/apps/audio/main.py +++ b/backend/apps/audio/main.py @@ -69,7 +69,7 @@ def transcribe( transcript = "".join([segment.text for segment in list(segments)]) - return {"text": transcript} + return {"text": transcript.strip()} except Exception as e: print(e)