Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def preprocess_text(element):
|
|
27 |
stop_words = set(stopwords.words('english'))
|
28 |
text = " ".join([word for word in text.split() if word not in stop_words])
|
29 |
|
30 |
-
Convert to lowercase (optional)
|
31 |
text = text.lower()
|
32 |
return text
|
33 |
else:
|
|
|
27 |
stop_words = set(stopwords.words('english'))
|
28 |
text = " ".join([word for word in text.split() if word not in stop_words])
|
29 |
|
30 |
+
# Convert to lowercase (optional)
|
31 |
text = text.lower()
|
32 |
return text
|
33 |
else:
|