Spaces:
Runtime error
Runtime error
kargaranamir
commited on
Commit
·
2d9f362
1
Parent(s):
99377c2
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def preprocess_text(text):
|
|
64 |
replace_by = " "
|
65 |
replacement_map = {
|
66 |
ord(c): replace_by
|
67 |
-
for c in '
|
68 |
}
|
69 |
text = text.translate(replacement_map)
|
70 |
|
|
|
64 |
replace_by = " "
|
65 |
replacement_map = {
|
66 |
ord(c): replace_by
|
67 |
+
for c in ':#{|}' + string.digits
|
68 |
}
|
69 |
text = text.translate(replacement_map)
|
70 |
|