pere commited on
Commit
4994416
·
1 Parent(s): bab43b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- mytext = text.translate(trans_table)
54
  st.write(mytext)
55
- text = textbox.text_area(f"",max_chars=1000, value=mytext)
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: