Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,13 +41,12 @@ class URLProcessor:
|
|
41 |
'Connection': 'keep-alive',
|
42 |
'Upgrade-Insecure-Requests': '1'
|
43 |
})
|
44 |
-
|
45 |
def advanced_text_cleaning(self, text: str) -> str:
|
46 |
"""Robust text cleaning with version compatibility"""
|
47 |
try:
|
48 |
cleaned_text = clean(
|
49 |
text,
|
50 |
-
fix_unicode=True,
|
51 |
to_ascii=True,
|
52 |
lower=True,
|
53 |
no_line_breaks=True,
|
|
|
41 |
'Connection': 'keep-alive',
|
42 |
'Upgrade-Insecure-Requests': '1'
|
43 |
})
|
44 |
+
|
45 |
def advanced_text_cleaning(self, text: str) -> str:
|
46 |
"""Robust text cleaning with version compatibility"""
|
47 |
try:
|
48 |
cleaned_text = clean(
|
49 |
text,
|
|
|
50 |
to_ascii=True,
|
51 |
lower=True,
|
52 |
no_line_breaks=True,
|