mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 06:20:20 -05:00
fix: strip transcription text
This commit is contained in:
1 parent
98496a7055
commit
2ef4fc1215
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user