nickmuchi commited on
Commit
e6fd33c
1 Parent(s): 9d92d3b

Update functions.py

Browse files
Files changed (1) hide show
  1. 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(clean_text(text))
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