jaifar530 commited on
Commit
4007794
·
unverified ·
1 Parent(s): 35492a6

adding word count

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -48,6 +48,7 @@ with open('RandomForestClassifier.pkl', 'rb') as file:
48
 
49
 
50
  input_paragraph = st.text_area("Input your text here")
 
51
 
52
  # df = pd.DataFrame(columns=["paragraph"])
53
  # df = df.append({"paragraph": input_paragraph}, ignore_index=True)
 
48
 
49
 
50
  input_paragraph = st.text_area("Input your text here")
51
+ st.write('Words counts: ', word_tokenize(input_paragraph))
52
 
53
  # df = pd.DataFrame(columns=["paragraph"])
54
  # df = df.append({"paragraph": input_paragraph}, ignore_index=True)