pere commited on
Commit
1c97cba
·
verified ·
1 Parent(s): 8913af2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def format_output(text):
46
  # Add a newline after ".", "!", ":", or "?" unless part of sequences like "..."
47
  text = re.sub(r'(?<!\.)[.!:?](?!\.)', lambda m: m.group() + '\n', text)
48
  # Ensure newline after sequences like "..." or other punctuation patterns
49
- text = re.sub(r'(\.{3,}|[.!:?])', lambda m: m.group() + '\n', text)
50
  return text
51
 
52
  def transcribe(file, return_timestamps=False):
 
46
  # Add a newline after ".", "!", ":", or "?" unless part of sequences like "..."
47
  text = re.sub(r'(?<!\.)[.!:?](?!\.)', lambda m: m.group() + '\n', text)
48
  # Ensure newline after sequences like "..." or other punctuation patterns
49
+ text = re.sub(r'(\.{3,}|[.!:?])', lambda m: m.group() + '\n\n', text)
50
  return text
51
 
52
  def transcribe(file, return_timestamps=False):