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