Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ if uncase:
|
|
51 |
if unpunct:
|
52 |
trans_chars = "'\",.:;-_*?/\n"
|
53 |
trans_table = mytext.maketrans("", "", trans_chars)
|
54 |
-
mytext =
|
55 |
if unspace:
|
56 |
mytext = mytext.replace(" ", "")
|
57 |
else:
|
|
|
51 |
if unpunct:
|
52 |
trans_chars = "'\",.:;-_*?/\n"
|
53 |
trans_table = mytext.maketrans("", "", trans_chars)
|
54 |
+
mytext = mytext.translate(trans_table)
|
55 |
if unspace:
|
56 |
mytext = mytext.replace(" ", "")
|
57 |
else:
|