瀏覽代碼

fix: strip transcription text

Timothy J. Baek 1 年之前
父節點
當前提交
2ef4fc1215
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)