Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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):
|