Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ if uncase:
|
|
42 |
st.write("uncase is pressed, and mytext ="+ mytext)
|
43 |
elif unpunct:
|
44 |
trans_chars = "'\",.:;-_*?/\n"
|
45 |
-
trans_table =
|
46 |
mytext = mytext.translate(trans_table)
|
47 |
elif unspace:
|
48 |
st.write("test3")
|
|
|
42 |
st.write("uncase is pressed, and mytext ="+ mytext)
|
43 |
elif unpunct:
|
44 |
trans_chars = "'\",.:;-_*?/\n"
|
45 |
+
trans_table = mytext.maketrans("", "", trans_chars)
|
46 |
mytext = mytext.translate(trans_table)
|
47 |
elif unspace:
|
48 |
st.write("test3")
|