Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
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):
|