Procházet zdrojové kódy

fix: strip transcription text

Timothy J. Baek před 1 rokem
rodič
revize
2ef4fc1215
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)