Browse Source

fix: strip transcription text

Timothy J. Baek 1 năm trước cách đây
mục cha
commit
2ef4fc1215
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/apps/audio/main.py

+ 1 - 1
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)