KeisukeMiyamoto commited on
Commit
3a2ffbd
·
verified ·
1 Parent(s): 198f058

Join transcription segments without line breaks

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 "\n".join(texts)
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.