Update app.py
Browse files
app.py
CHANGED
@@ -48,10 +48,12 @@ text = textbox.text_area(f"",max_chars=1000)
|
|
48 |
# mytext = text.lower()
|
49 |
|
50 |
if unpunct:
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
54 |
mytext = "pere"
|
|
|
55 |
textbox.text_area(f"",max_chars=1000, value=mytext)
|
56 |
st.write("inside unpunct")
|
57 |
|
|
|
48 |
# mytext = text.lower()
|
49 |
|
50 |
if unpunct:
|
51 |
+
trans_chars = "'\",.:;-_*?/\n"
|
52 |
+
trans_table = text.maketrans("", "", trans_chars)
|
53 |
+
mytext = text.translate(trans_table)
|
54 |
+
st.write(mytext)
|
55 |
mytext = "pere"
|
56 |
+
st.write(mytext)
|
57 |
textbox.text_area(f"",max_chars=1000, value=mytext)
|
58 |
st.write("inside unpunct")
|
59 |
|