Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,7 @@ def clean_text(content):
|
|
30 |
content = content.replace('\n', ' ')
|
31 |
content = content.replace('\r', ' ')
|
32 |
content = content.replace('\t', ' ')
|
33 |
-
content =
|
34 |
-
content = content.strip()
|
35 |
return content
|
36 |
|
37 |
|
|
|
30 |
content = content.replace('\n', ' ')
|
31 |
content = content.replace('\r', ' ')
|
32 |
content = content.replace('\t', ' ')
|
33 |
+
content = re.sub(r'\s+', ' ', content)
|
|
|
34 |
return content
|
35 |
|
36 |
|