Skip to content

Commit

Permalink
fixed content errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuton committed Dec 29, 2020
1 parent 453b2fd commit afdc4b1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Whatsapp chat Analysis/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def upload_data():
try:
uploaded_file = st.file_uploader('Whatsapp chat dataset', type='txt')
if uploaded_file:
st.write('file uploaded successfully :joy: ' )
st.write('file uploaded successfully' )
wh_chat = pd.read_csv(uploaded_file, sep='\t', header=None)[0].tolist()
msgs = [] #message container
pos = 0
Expand Down Expand Up @@ -191,5 +191,5 @@ def upload_data():
st.warning('Please Upload a txt file')

if __name__ == '__main__':
st.title('Whatsapp Chat Analysis :eyes::clap:')
st.title(':clap: Whatsapp Chat Analysis :eyes::clap:')
upload_data()
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def upload_data():
df = df[df['Content'] != ' <Media omitted>']
# remove all emoji
df['Content'] = df['Content'].apply(remove_emoji)
# drop unwanted contents
df = df[df['Content'] != 'Missing Text']
# add the chat length
df['chat_length'] = df['Content'].apply(len)
# add word count
Expand Down
Binary file added masked_wordcloud.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added ner_analysis.py
Empty file.

0 comments on commit afdc4b1

Please sign in to comment.