From 43576c4a76a33ef908e39c4de068283d799564c4 Mon Sep 17 00:00:00 2001 From: Fireblade2534 <77405729+fireblade2534@users.noreply.github.com> Date: Sat, 1 Mar 2025 12:45:41 -0500 Subject: [PATCH] Remove random 1 --- api/src/services/text_processing/text_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/services/text_processing/text_processor.py b/api/src/services/text_processing/text_processor.py index 1176c66..0d8d36c 100644 --- a/api/src/services/text_processing/text_processor.py +++ b/api/src/services/text_processing/text_processor.py @@ -92,7 +92,7 @@ def get_sentence_info(text: str, custom_phenomes_list: Dict[str, str]) -> List[T """Process all sentences and return info.""" sentences = re.split(r"([.!?;:])(?=\s|$)", text) phoneme_length, min_value = len(custom_phenomes_list), 0 - 1 + results = [] for i in range(0, len(sentences), 2): sentence = sentences[i].strip() @@ -264,4 +264,4 @@ async def smart_split( total_time = time.time() - start_time logger.info( f"Split completed in {total_time * 1000:.2f}ms, produced {chunk_count} chunks" - ) \ No newline at end of file + )