Spaces:
Sleeping
Sleeping
Join transcription segments without line breaks
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def create_app() -> gr.Blocks:
|
|
| 37 |
texts: list[str] = []
|
| 38 |
for batch in batched(segments, 4):
|
| 39 |
texts.extend(generate(list(batch)))
|
| 40 |
-
yield "
|
| 41 |
|
| 42 |
# ---------------------------------------------------------
|
| 43 |
# Provide one audio input and one transcription action.
|
|
|
|
| 37 |
texts: list[str] = []
|
| 38 |
for batch in batched(segments, 4):
|
| 39 |
texts.extend(generate(list(batch)))
|
| 40 |
+
yield "".join(texts).replace("\r", "").replace("\n", "")
|
| 41 |
|
| 42 |
# ---------------------------------------------------------
|
| 43 |
# Provide one audio input and one transcription action.
|