complete task query interface

This commit is contained in:
harry
2024-04-01 20:12:14 +08:00
parent 95bc24453f
commit 9283787681
10 changed files with 139 additions and 23 deletions

View File

@@ -149,7 +149,7 @@ def text_to_srt(idx: int, msg: str, start_time: float, end_time: float) -> str:
def str_contains_punctuation(word):
for p in const.punctuations:
for p in const.PUNCTUATIONS:
if p in word:
return True
return False
@@ -159,7 +159,7 @@ def split_string_by_punctuations(s):
result = []
txt = ""
for char in s:
if char not in const.punctuations:
if char not in const.PUNCTUATIONS:
txt += char
else:
result.append(txt.strip())