Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -31,15 +31,10 @@ def add_caseifer(text):
|
|
31 |
"&":"and"
|
32 |
}
|
33 |
upperlist = set("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
34 |
-
lowerlist = set("abcdefghijklmnopqrstuvwxyz")
|
35 |
-
|
36 |
new_text = ""
|
37 |
-
uppers = 0
|
38 |
-
lowers = 0
|
39 |
for char in text:
|
40 |
if char in tokenlist:
|
41 |
if char in upperlist:
|
42 |
-
uppers += 1
|
43 |
new_text += "↨" + char.lower()
|
44 |
elif char in replace_map:
|
45 |
new_text += replace_map[char]
|
|
|
31 |
"&":"and"
|
32 |
}
|
33 |
upperlist = set("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
|
|
|
|
34 |
new_text = ""
|
|
|
|
|
35 |
for char in text:
|
36 |
if char in tokenlist:
|
37 |
if char in upperlist:
|
|
|
38 |
new_text += "↨" + char.lower()
|
39 |
elif char in replace_map:
|
40 |
new_text += replace_map[char]
|