pere commited on
Commit
81e8c0f
·
1 Parent(s): 8b24943

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = text.translate(trans_table)
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: