Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
2ef4fc12
Commit
2ef4fc12
authored
Feb 11, 2024
by
Timothy J. Baek
Browse files
fix: strip transcription text
parent
98496a70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/audio/main.py
backend/apps/audio/main.py
+1
-1
No files found.
backend/apps/audio/main.py
View file @
2ef4fc12
...
@@ -69,7 +69,7 @@ def transcribe(
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment