Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ def clean_text(text):
|
|
14 |
text = re.sub(r"\n", " ", text)
|
15 |
text = re.sub(r"\n\n", " ", text)
|
16 |
text = re.sub(r"\t", " ", text)
|
|
|
17 |
text = text.strip(" ")
|
18 |
text = re.sub(
|
19 |
" +", " ", text
|
14 |
text = re.sub(r"\n", " ", text)
|
15 |
text = re.sub(r"\n\n", " ", text)
|
16 |
text = re.sub(r"\t", " ", text)
|
17 |
+
text = re.sub(r"ADVERTISEMENT", " ", text)
|
18 |
text = text.strip(" ")
|
19 |
text = re.sub(
|
20 |
" +", " ", text
|