Update functions.py
Browse files- functions.py +1 -1
functions.py
CHANGED
@@ -328,7 +328,7 @@ def chunk_and_preprocess_text(text, model_name= 'philschmid/flan-t5-base-samsum'
|
|
328 |
'''Chunk and preprocess text for summarization'''
|
329 |
|
330 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
331 |
-
sentences = sent_tokenize(
|
332 |
|
333 |
# initialize
|
334 |
length = 0
|
|
|
328 |
'''Chunk and preprocess text for summarization'''
|
329 |
|
330 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
331 |
+
sentences = sent_tokenize(text)
|
332 |
|
333 |
# initialize
|
334 |
length = 0
|