mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
fix: strip transcription text
This commit is contained in:
@@ -69,7 +69,7 @@ def transcribe(
|
|||||||
|
|
||||||
transcript = "".join([segment.text for segment in list(segments)])
|
transcript = "".join([segment.text for segment in list(segments)])
|
||||||
|
|
||||||
return {"text": transcript}
|
return {"text": transcript.strip()}
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user