rodrigomasini commited on
Commit
8460a54
·
verified ·
1 Parent(s): 1d134b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -182,7 +182,7 @@ def pre_process_text(text):
182
  # Remove empty elements
183
  cleaned_sentences = [sentence for sentence in split_sentences if sentence.strip()]
184
  sentences_number = len(cleaned_sentences)
185
- return sentences, sentences_number
186
 
187
  # Function to clean the sentences list and return words only
188
  def extract_words(sentences):
 
182
  # Remove empty elements
183
  cleaned_sentences = [sentence for sentence in split_sentences if sentence.strip()]
184
  sentences_number = len(cleaned_sentences)
185
+ return cleaned_sentences, sentences_number
186
 
187
  # Function to clean the sentences list and return words only
188
  def extract_words(sentences):