Skip to content

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

fix the bug where the last subtitle line was missing

harry1e96357f00f3
diff --git a/app/utils/utils.py b/app/utils/utils.py
index 3a813f03..b7041dcf 100644
--- a/app/utils/utils.py
+++ b/app/utils/utils.py
@@ -188,7 +188,7 @@ def split_string_by_punctuations(s):
else:
result.append(txt.strip())
txt = ""
-
+ result.append(txt.strip())
# filter empty string
result = list(filter(None, result))
return result