Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wjbmattingly committed Aug 19, 2021
1 parent 9d2281c commit ddbfebd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import glob
import locale

locale.setlocale(locale.LC_ALL, 'en_US')
# locale.setlocale(locale.LC_ALL, 'en_US')

st.title("Digital Humanities Apps")

Expand All @@ -24,7 +24,7 @@
file = file.read().decode().split(chapter_format)
all_text = "\n\n".join(file)
words = len(all_text.split())
words = locale.format("%d", words, grouping=True)
# words = locale.format("%d", words, grouping=True)
st.write(f'Your text is {words} words long.')
output = st.text_area("Output", all_text)

Expand All @@ -45,7 +45,7 @@
final.append(temp)
all_text = "\n\n".join(final)
words = len(all_text.split())
words = locale.format("%d", words, grouping=True)
# words = locale.format("%d", words, grouping=True)
st.write(f'Your text is {words} words long.')
output = st.text_area("Output", all_text)

Expand Down

0 comments on commit ddbfebd

Please sign in to comment.