|
|
@ -73,7 +73,7 @@ class OpenAIApi:
|
|
|
|
for line in lines:
|
|
|
|
for line in lines:
|
|
|
|
line = line.strip()
|
|
|
|
line = line.strip()
|
|
|
|
# Add a dot at the end of the line if it doesn't end with a punctuation mark
|
|
|
|
# Add a dot at the end of the line if it doesn't end with a punctuation mark
|
|
|
|
if regex.find(line[-1]) == -1:
|
|
|
|
if len(line) > 0 and regex.find(line[-1]) == -1:
|
|
|
|
line += "."
|
|
|
|
line += "."
|
|
|
|
new_lines.append(line)
|
|
|
|
new_lines.append(line)
|
|
|
|
text = " ".join(new_lines)
|
|
|
|
text = " ".join(new_lines)
|
|
|
|