Spaces:
Runtime error
Runtime error
mrfransis
commited on
Commit
·
eda5d31
1
Parent(s):
7e36837
add fix
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def main() -> None:
|
|
111 |
|
112 |
for line in re.split(r'(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s', summary):
|
113 |
if line.find(".") != -1:
|
114 |
-
line.replace("..", ".")
|
115 |
summary_sentences.append(line)
|
116 |
display_summary(summary_sentences)
|
117 |
|
|
|
111 |
|
112 |
for line in re.split(r'(?<!\w\.\w.)(?<![A-Z][a-z]\.)(?<=\.|\?)\s', summary):
|
113 |
if line.find(".") != -1:
|
114 |
+
line = line.replace("..", ".")
|
115 |
summary_sentences.append(line)
|
116 |
display_summary(summary_sentences)
|
117 |
|